Skip to content

Commit 1732944

Browse files
authored
dev: display help message with green color (#4497)
1 parent 0c4c36d commit 1732944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: pkg/commands/root.go

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func (c *rootCommand) Execute() error {
8484
}
8585

8686
func setupRootPersistentFlags(fs *pflag.FlagSet, opts *rootOptions) {
87+
fs.BoolP("help", "h", false, color.GreenString("Help for a command"))
8788
fs.BoolVarP(&opts.Verbose, "verbose", "v", false, color.GreenString("Verbose output"))
8889
fs.StringVar(&opts.Color, "color", "auto", color.GreenString("Use color when printing; can be 'always', 'auto', or 'never'"))
8990
}

0 commit comments

Comments
 (0)