cli, help: usage tweaks
[ci skip]
This commit is contained in:
parent
bd2d9b829c
commit
69c41cdd99
@ -32,7 +32,7 @@ import Hledger.Cli.DocFiles
|
|||||||
--import Hledger.Utils.Debug
|
--import Hledger.Utils.Debug
|
||||||
|
|
||||||
helpmode = (defCommandMode $ ["help"] ++ aliases) {
|
helpmode = (defCommandMode $ ["help"] ++ aliases) {
|
||||||
modeHelp = "show any of the hledger manuals, as plain text. With no argument, list the manuals." `withAliases` aliases
|
modeHelp = "show any of the hledger manuals, choosing the most suitable viewer (info, man, a pager, or stdout). With no argument, list the manuals." `withAliases` aliases
|
||||||
,modeGroupFlags = Group {
|
,modeGroupFlags = Group {
|
||||||
groupUnnamed = [
|
groupUnnamed = [
|
||||||
flagNone ["info"] (setboolopt "info") "show the manual with info"
|
flagNone ["info"] (setboolopt "info") "show the manual with info"
|
||||||
|
|||||||
@ -81,7 +81,7 @@ import Hledger.Utils
|
|||||||
mainmode addons = defMode {
|
mainmode addons = defMode {
|
||||||
modeNames = [progname ++ " [CMD]"]
|
modeNames = [progname ++ " [CMD]"]
|
||||||
,modeArgs = ([], Just $ argsFlag "[ARGS]")
|
,modeArgs = ([], Just $ argsFlag "[ARGS]")
|
||||||
,modeHelp = unlines ["hledger's command line interface"]
|
,modeHelp = unlines ["hledger's main command line interface. Runs builtin commands and other hledger executables. Type \"hledger\" to list available commands."]
|
||||||
,modeGroupModes = Group {
|
,modeGroupModes = Group {
|
||||||
-- subcommands in the unnamed group, shown first:
|
-- subcommands in the unnamed group, shown first:
|
||||||
groupUnnamed = [
|
groupUnnamed = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user