mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
imp: help: doc: warn about old info on mac (fix #1770)
This commit is contained in:
parent
1c5dee2339
commit
3e3c3c8355
@ -11,13 +11,20 @@ This command shows the hledger manual built in to your hledger version.
|
|||||||
It can be useful when offline, or when you prefer the terminal to a web browser,
|
It can be useful when offline, or when you prefer the terminal to a web browser,
|
||||||
or when the appropriate hledger manual or viewing tools are not installed on your system.
|
or when the appropriate hledger manual or viewing tools are not installed on your system.
|
||||||
|
|
||||||
By default it chooses the best viewer found in $PATH
|
By default it chooses the best viewer found in $PATH, trying (in this order):
|
||||||
(preferring info since the hledger manual is large).
|
`info`, `man`, `$PAGER`, `less`, `more`.
|
||||||
You can select a particular viewer with the `-i`, `-m`, or `-p` flags.
|
You can force the use of info, man, or a pager with the `-i`, `-m`, or `-p` flags,
|
||||||
|
If no viewer can be found, or the command is run non-interactively, it just prints
|
||||||
|
the manual to stdout.
|
||||||
|
|
||||||
|
If using `info`, note that version 6 or greater is needed for TOPIC lookup. If you are
|
||||||
|
on mac you will likely have info 4.8, and should consider installing a newer version,
|
||||||
|
eg with `brew install texinfo` (#1770).
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
```shell
|
```shell
|
||||||
$ hledger help --help # show how the help command works
|
$ hledger help --help # show how the help command works
|
||||||
$ hledger help # show the hledger manual with info, man or $PAGER
|
$ hledger help # show the hledger manual with info, man or $PAGER
|
||||||
$ hledger help journal # show the journal topic in the hledger manual
|
$ hledger help journal # show the journal topic in the hledger manual
|
||||||
|
$ hledger help -m journal # show it with man, even if info is installed
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user