We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eca1f0 commit 3a9334dCopy full SHA for 3a9334d
run.go
@@ -127,7 +127,7 @@ func Run(ctx context.Context, cliargs []string) error {
127
// manually set --help, see github.com/spf13/cobra/command.go
128
flags.Bool("help", false, "show this help, then exit")
129
_ = c.Flags().SetAnnotation("help", cobra.FlagSetByCobraAnnotation, []string{"true"})
130
- // add to metacmd usage
+ // expose to metacmd
131
metacmd.Usage = func(w io.Writer) {
132
_, _ = w.Write([]byte(text.Short() + "\n\n" + c.UsageString()))
133
}
0 commit comments