cli: clarify --debug flag's help

This commit is contained in:
Simon Michael 2016-07-06 15:11:10 -07:00
parent e17a834e2b
commit 1953748972
3 changed files with 4 additions and 4 deletions

View File

@ -70,8 +70,8 @@ m4_define({{_generaloptions_}}, {{
`--version` `--version`
: show version : show version
`--debug=N` `--debug[=N]`
: show debug output if N is 1-9 (default: 0) : show debug output (levels 1-9, default: 1)
`-f FILE --file=FILE` `-f FILE --file=FILE`
: use a different input file. For stdin, use - : use a different input file. For stdin, use -

View File

@ -103,7 +103,7 @@ helpflags = [
,flagNone ["man"] (setboolopt "man") "show the current program's manual with man" ,flagNone ["man"] (setboolopt "man") "show the current program's manual with man"
,flagNone ["info"] (setboolopt "info") "show the current program's manual with info" ,flagNone ["info"] (setboolopt "info") "show the current program's manual with info"
-- ,flagNone ["browse-args"] (setboolopt "browse-args") "use a web UI to select options and build up a command line" -- ,flagNone ["browse-args"] (setboolopt "browse-args") "use a web UI to select options and build up a command line"
,flagReq ["debug"] (\s opts -> Right $ setopt "debug" s opts) "N" "show increasing amounts of debug output if N is 1-9. With no argument, show level 1" ,flagReq ["debug"] (\s opts -> Right $ setopt "debug" s opts) "[N]" "show debug output (levels 1-9, default: 1)"
,flagNone ["version"] (setboolopt "version") "show version information" ,flagNone ["version"] (setboolopt "version") "show version information"
] ]

View File

@ -53,7 +53,7 @@ If in doubt, keep things simple:
- if needed, also add a backslash to escape regexp metacharacters - if needed, also add a backslash to escape regexp metacharacters
- run add-on executables directly - run add-on executables directly
If you're really curious, add `--debug 2` for troubleshooting. If you're really curious, add `--debug=2` for troubleshooting.
**General options:** **General options:**