Skip to content

Commit 8eca1f0

Browse files
committed
Adding banner to metacmd options help
1 parent 8f5457a commit 8eca1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func Run(ctx context.Context, cliargs []string) error {
129129
_ = c.Flags().SetAnnotation("help", cobra.FlagSetByCobraAnnotation, []string{"true"})
130130
// add to metacmd usage
131131
metacmd.Usage = func(w io.Writer) {
132-
_, _ = w.Write([]byte(c.UsageString()))
132+
_, _ = w.Write([]byte(text.Short() + "\n\n" + c.UsageString()))
133133
}
134134
// mark hidden
135135
for _, s := range []string{"no-psqlrc", "no-usqlrc", "var", "variable"} {

0 commit comments

Comments
 (0)