diff --git a/api/utils/cobrautils/template.go b/api/utils/cobrautils/template.go index 76e12ea251..76f73ab569 100644 --- a/api/utils/cobrautils/template.go +++ b/api/utils/cobrautils/template.go @@ -12,10 +12,10 @@ Aliases: Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}} {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if and .HasAvailableLocalFlags .IsAvailableCommand}} -Flags: +Options: {{ flagUsages .LocalFlags | trimTrailingWhitespaces}}{{end}}{{if and .HasAvailableInheritedFlags .IsAvailableCommand}} -Global Flags: +Global Options: {{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}} Description: @@ -44,10 +44,10 @@ Examples: Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}} {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}} -Flags: +Options: {{ flagUsages .LocalFlags | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}} -Global Flags: +Global Options: {{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}} Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} diff --git a/cmds/cliplugin/cmds/cmd_test.go b/cmds/cliplugin/cmds/cmd_test.go index 50671fa3e6..6c374be6b1 100644 --- a/cmds/cliplugin/cmds/cmd_test.go +++ b/cmds/cliplugin/cmds/cmd_test.go @@ -86,7 +86,7 @@ ocm check rhubarb — Determine Whether We Are In Rhubarb Season Synopsis: ocm check rhubarb -Flags: +Options: -d, --date string the date to ask for (MM/DD) -h, --help help for check @@ -106,7 +106,7 @@ ocm check rhubarb — Determine Whether We Are In Rhubarb Season Synopsis: ocm check rhubarb -Flags: +Options: -d, --date string the date to ask for (MM/DD) -h, --help help for check diff --git a/cmds/subcmdplugin/cmds/cmd_test.go b/cmds/subcmdplugin/cmds/cmd_test.go index 240349caa6..be338733e9 100644 --- a/cmds/subcmdplugin/cmds/cmd_test.go +++ b/cmds/subcmdplugin/cmds/cmd_test.go @@ -64,7 +64,7 @@ Synopsis: Available Commands: demo a demo command -Flags: +Options: -h, --help help for group Description: @@ -83,7 +83,7 @@ ocm group demo — A Demo Command Synopsis: ocm group demo [flags] -Flags: +Options: -h, --help help for demo --version string some overloaded option @@ -107,7 +107,7 @@ Synopsis: Available Commands: demo a demo command -Flags: +Options: -h, --help help for group Description: @@ -126,7 +126,7 @@ ocm group demo — A Demo Command Synopsis: ocm group demo [flags] -Flags: +Options: -h, --help help for demo --version string some overloaded option