hledger CMD --info will now open CMD's info node, hledger CMD --man will scroll the man page to CMD's section, and hledger help -i/-m/-p TOPIC will do similar. This is not perfectly robust but hopefully will be good enough in practice. Also the help command's long --info/--man/--pager flags have been dropped in favour of -i/-m/-p.
18 lines
726 B
Markdown
18 lines
726 B
Markdown
help\
|
|
Show the hledger user manual in one of several formats,
|
|
optionally positioned at a given TOPIC (if possible).
|
|
TOPIC is any heading, or heading prefix, in the manual.
|
|
Some examples: commands, print, 'auto postings', periodic.
|
|
|
|
_FLAGS
|
|
|
|
This command shows the user manual built in to this hledger version.
|
|
It can be useful if the correct version of the hledger manual,
|
|
or the usual viewing tools, are not installed on your system.
|
|
|
|
By default it uses the best viewer it can find in $PATH, in this order:
|
|
`info`, `man`, $PAGER (unless a topic is specified), `less`, or stdout.
|
|
When run non-interactively, it always uses stdout.
|
|
Or you can select a particular viewer with the
|
|
`-i` (info), `-m` (man), or `-p` (pager) flags.
|