From a0afda4a2b46a42a0c7569e504a67b506d61c09c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 8 Mar 2025 11:20:21 -1000 Subject: [PATCH] ;doc:options: mention mutually exclusive flags --- hledger/hledger.m4.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 556b82e8a..3084a593d 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -266,7 +266,8 @@ _generaloptions_ Usually hledger accepts any unambiguous flag prefix, eg you can write `--tl` instead of `--tldr` or `--dry` instead of `--dry-run`. -If the same option appears more than once in a command, usually the last (right-most) wins. +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. With most commands, arguments are interpreted as a hledger [query](hledger.md#queries) which filter the data. Some queries can be expressed either with options or with arguments.