@@ -378,21 +378,21 @@ func numFlags(flagSet pflag.FlagSet) int {
378378
379379// UsageTemplate is the custom usage template of the command.
380380// Changes in comparison to cobra's default template:
381- // 1. Usage section
382- // a. `[flags]` is placed before the arguments.
383- // b. All arguments are put in the usage in their proper order.
384- // c. Where applicable, the argument name is replaced with its placeholder.
385- // 2. Commands section
386- // a. For the root command (`secrethub`) the commands are grouped into
387- // `Management commands` and `Commands`
388- // 2. Flags section
389- // a. Flag's type was removed.
390- // b. The help text for flags is well divided into its own column, thus
391- // making the visibility of the flags better.
392- // c. At the end of a flag's help text, the name of its environment variable is
393- // displayed between brackets.
394- // d. The section is hidden if the only flag is `--help`.
395- // 4. Arguments section (created by us)
381+ // 1. Usage section
382+ // a. `[flags]` is placed before the arguments.
383+ // b. All arguments are put in the usage in their proper order.
384+ // c. Where applicable, the argument name is replaced with its placeholder.
385+ // 2. Commands section
386+ // a. For the root command (`secrethub`) the commands are grouped into
387+ // `Management commands` and `Commands`
388+ // 2. Flags section
389+ // a. Flag's type was removed.
390+ // b. The help text for flags is well divided into its own column, thus
391+ // making the visibility of the flags better.
392+ // c. At the end of a flag's help text, the name of its environment variable is
393+ // displayed between brackets.
394+ // d. The section is hidden if the only flag is `--help`.
395+ // 4. Arguments section (created by us)
396396var UsageTemplate = `Usage:
397397{{if .Cmd.Runnable}} {{(useLine .Cmd .Args)}}{{end}}
398398{{- if .Cmd.HasAvailableSubCommands}} {{ .Cmd.CommandPath}} [command]{{end}}
0 commit comments