Skip to content

Commit 7e23254

Browse files
authored
remove "default []" from help (#33)
1 parent 3735d4f commit 7e23254

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Flags:
9090

9191
Equivalent config.yaml:
9292
promptForReview: promptY
93-
pollInterval: 1m (default [])
93+
pollInterval: 1m
9494
-h, --help help for sd
9595
-l, --log-level string Possible log levels:
9696
debug
@@ -477,7 +477,7 @@ The following flags are available on all commands:
477477

478478
Equivalent config.yaml:
479479
promptForReview: promptY
480-
pollInterval: 1m (default [])
480+
pollInterval: 1m
481481
-l, --log-level string Possible log levels:
482482
debug
483483
info

commands/parse_arguments.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func buildRootCommand() *cobra.Command {
8787
"Equivalent config.yaml:\n"+
8888
" promptForReview: promptY\n"+
8989
" pollInterval: 1m")
90+
rootCmd.PersistentFlags().Lookup("config").DefValue = ""
9091

9192
rootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
9293
// If --log-level flag was set, it was already applied in ExecuteCommand.

0 commit comments

Comments
 (0)