;doc: --debug help tweak

This commit is contained in:
Simon Michael 2024-06-26 23:24:41 +01:00
parent 26978ffc26
commit 6aa1bbc18a
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ General help flags:
--info show the manual with info
--man show the manual with man
--version show version information
--debug=[1-9] show this level of debug output (default: 1)
--debug=[1-9] show this much debug output (default: 1)
```
}} )m4_dnl
m4_dnl

View File

@ -247,7 +247,7 @@ helpflags = [
-- flagOpt would be more correct for --debug, showing --debug[=LVL] rather than --debug=[LVL].
-- But because we handle --debug specially, flagReq also works, and it does not need =, removing a source of confusion.
-- (This involves specially adding the flag value if missing in Cli.hs.)
,flagReq ["debug"] (\s opts -> Right $ setopt "debug" s opts) "[1-9]" "show this level of debug output (default: 1)"
,flagReq ["debug"] (\s opts -> Right $ setopt "debug" s opts) "[1-9]" "show this much debug output (default: 1)"
]
-- XXX why are these duplicated in defCommandMode below ?