We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4276fc5 commit 3439d77Copy full SHA for 3439d77
cli/root.go
@@ -264,6 +264,6 @@ func versionTemplate() string {
264
265
// FormatCobraError colorizes and adds "--help" docs to cobra commands.
266
func FormatCobraError(err error, cmd *cobra.Command) string {
267
- helpErrMsg := fmt.Sprintf("Run '%s %s --help' for usage.", cmd.Root().Name(), cmd.Name())
+ helpErrMsg := fmt.Sprintf("Run '%s --help' for usage.", cmd.CommandPath())
268
return cliui.Styles.Error.Render(err.Error() + "\n" + helpErrMsg)
269
}
0 commit comments