From 33c55b9cab3560e03f0f0436824d5a567b8835e1 Mon Sep 17 00:00:00 2001 From: Yagiz Degirmenci Date: Fri, 22 Jan 2021 02:34:39 +0300 Subject: [PATCH] fix(config): set default value to 6 for depth --- config/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/options.go b/config/options.go index de5828d..9a864e0 100644 --- a/config/options.go +++ b/config/options.go @@ -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")