Thanks to visit codestin.com Credit goes to github.com
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 adb7d20 commit 992b583Copy full SHA for 992b583
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