diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-28 18:34:42 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-28 18:37:31 +0100 |
commit | 03c4465baf3b348de3afc5fd873d417ae4887def (patch) | |
tree | d9d08da8dce38e51e737735a2de3714a5f843a57 /src/args.c | |
parent | 41389abd5519854543d22105c979e82ec3f57a05 (diff) | |
download | calcurse-03c4465baf3b348de3afc5fd873d417ae4887def.zip |
Fix behavior of --todo with an optional argument
The previous behavior of --todo was to always only list uncompleted
items, unless zero was specified as additional argument. Restore and
document this behavior.
Also, fix two tests that failed because the --todo output is now sorted.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/args.c')
-rw-r--r-- | src/args.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -534,6 +534,8 @@ int parse_args(int argc, char **argv) filter.priority = atoi(optarg); if (filter.priority == 0) filter.completed = 1; + else + filter.uncompleted = 1; EXIT_IF(filter.priority > 9, _("invalid priority: %s"), optarg); } else { |