;doc:options: mention that flag+value can't combine with other flags [#2059]

This commit is contained in:
Simon Michael 2025-06-15 15:27:25 -10:00
parent c5c05d3499
commit 2123f571ac

View File

@ -260,6 +260,9 @@ _generaloptions_
Usually hledger accepts any unambiguous flag prefix,
eg you can write `--tl` instead of `--tldr` or `--dry` instead of `--dry-run`.
You can combine short flags which don't take arguments, eg you can write `-MAST` instead of `-M -A -S -T`.
Flags requiring an argument can't be combined in this way (`-If FILE` won't work).
If the same option appears more than once in a command line, usually the last (right-most) wins.
Similarly, if mutually exclusive flags are used together, the right-most wins.
(When flags are mutually exclusive, they'll usually have a group prefix in --help.)