imp: cli: commands list: cleanup

This commit is contained in:
Simon Michael 2024-05-29 14:38:47 -10:00
parent c5f8444627
commit 3a387fab47

View File

@ -198,17 +198,19 @@ commandsList progversion othercmds =
-- it needs checking/updating after any wording/layout changes here -- it needs checking/updating after any wording/layout changes here
"-------------------------------------------------------------------------------" "-------------------------------------------------------------------------------"
,progversion ,progversion
,"Usage: hledger CMD [OPTS] [-- ADDONCMDOPTS]" ,"Usage: hledger COMMAND [OPTIONS] [-- ADDONOPTIONS]"
,"Commands (builtins + addons):" ,"Commands (builtins + addons):"
,"" ,""
-----------------------------------------80------------------------------------- -----------------------------------------80-------------------------------------
,bold' "HELP (docs, demos..)" ,bold' "HELP (docs, demos..)"
," hledger show this commands list" ," (no arguments) show this commands list"
," hledger -h show general options" ," -h [COMMAND] show command line help"
," hledger CMD -h show CMD's options and manual" ," --tldr [COMMAND] show command examples with tldr"
," hledger help [-i|-m|-p] [TOPIC] show the hledger manual" ," --info [COMMAND] show the hledger manual with info"
," hledger demo [DEMO] [-- ASCOPTS] show brief demos in the terminal" ," --man [COMMAND] show the hledger manual with man"
," https://hledger.org HTML manuals, tutorials, examples, support" ," help [-i|-m|-p] [TOPIC] show any topic in the hledger manual"
," demo [DEMO] show brief demos in the terminal"
," more help: https://hledger.org"
,"" ,""
-----------------------------------------80------------------------------------- -----------------------------------------80-------------------------------------
,bold' "USER INTERFACES (alternate UIs)" ,bold' "USER INTERFACES (alternate UIs)"
@ -279,7 +281,6 @@ commandsList progversion othercmds =
,"" ,""
-----------------------------------------80------------------------------------- -----------------------------------------80-------------------------------------
,bold' "OTHER ADDONS (more hledger-* commands found in PATH):" ,bold' "OTHER ADDONS (more hledger-* commands found in PATH):"
,""
] ]
++ map (' ':) (lines $ multicol 79 othercmds) ++ map (' ':) (lines $ multicol 79 othercmds)
++ [""] ++ [""]