Skip to content

Commit

Permalink
fix(config): set default value to 6 for depth
Browse files Browse the repository at this point in the history
  • Loading branch information
ycd committed Jan 21, 2021
1 parent a00c76a commit 33c55b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func ConfigureOptions(fs *flag.FlagSet, args []string) (*Options, error) {
fs.BoolVar(&opts.Bulleted, "bulleted", true, "Write as bulleted, or write as numbered list")
fs.IntVar(&opts.Skip, "s", 0, "Skip the first given number of headers ")
fs.IntVar(&opts.Skip, "skip", 0, "Skip the first given number of headers ")
fs.IntVar(&opts.Depth, "d", 0, "Set the number of maximum heading level to be included")
fs.IntVar(&opts.Depth, "depth", 0, "Set the number of maximum heading level to be included")
fs.IntVar(&opts.Depth, "d", 6, "Set the number of maximum heading level to be included")
fs.IntVar(&opts.Depth, "depth", 6, "Set the number of maximum heading level to be included")
fs.BoolVar(&opts.ShowHelp, "h", false, "Show help message")
fs.BoolVar(&opts.ShowHelp, "help", false, "Show help message")

Expand Down

0 comments on commit 33c55b9

Please sign in to comment.