summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-28 18:34:42 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-28 18:37:31 +0100
commit03c4465baf3b348de3afc5fd873d417ae4887def (patch)
treed9d08da8dce38e51e737735a2de3714a5f843a57 /doc
parent41389abd5519854543d22105c979e82ec3f57a05 (diff)
downloadcalcurse-03c4465baf3b348de3afc5fd873d417ae4887def.tar.gz
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 'doc')
-rw-r--r--doc/calcurse.1.txt8
-rw-r--r--doc/manual.txt8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/calcurse.1.txt b/doc/calcurse.1.txt
index 829ede2..28238d1 100644
--- a/doc/calcurse.1.txt
+++ b/doc/calcurse.1.txt
@@ -183,10 +183,10 @@ in read-only mode, all changes from this session will be lost without warning!
*-t*[num], *--todo*[=num]::
Print the *todo* list and exit. If the optional number 'num' is given, then
- only todos having a priority equal to 'num' will be returned. The priority
- number must be between 1 (highest) and 9 (lowest). It is also possible to
- specify *0* for the priority, in which case only completed tasks will be
- shown. Equivalent to *-Q --filter-type todo*, combined with
+ only uncompleted todos having a priority equal to 'num' will be returned. The
+ priority number must be between 1 (highest) and 9 (lowest). It is also
+ possible to specify *0* for the priority, in which case only completed tasks
+ will be shown. Equivalent to *-Q --filter-type todo*, combined with
*--filter-priority* and *--filter-completed* or *--filter-uncompleted*.
*--to* <date>::
diff --git a/doc/manual.txt b/doc/manual.txt
index a388fe0..be6875d 100644
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -376,10 +376,10 @@ in read-only mode, all changes from this session will be lost without warning!
`-t[num], --todo[=num]`::
Print the `todo` list and exit. If the optional number `num` is given, then
- only todos having a priority equal to `num` will be returned. The priority
- number must be between 1 (highest) and 9 (lowest). It is also possible to
- specify `0` for the priority, in which case only completed tasks will be
- shown. Equivalent to `-Q --filter-type todo`, combined with
+ only uncompleted todos having a priority equal to `num` will be returned. The
+ priority number must be between 1 (highest) and 9 (lowest). It is also
+ possible to specify `0` for the priority, in which case only completed tasks
+ will be shown. Equivalent to `-Q --filter-type todo`, combined with
`--filter-priority` and `--filter-completed` or `--filter-uncompleted`.
`--to <date>`::