Skip to content

Commit

Permalink
Add 'done' option as alias of 'do' (todotxt#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
kh80 authored and wwalker committed Sep 19, 2021
1 parent 524a7c0 commit 7bce391
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ shorthelp()
deduplicate
del|rm ITEM# [TERM]
depri|dp ITEM#[, ITEM#, ITEM#, ...]
do ITEM#[, ITEM#, ITEM#, ...]
done|do ITEM#[, ITEM#, ITEM#, ...]
help [ACTION...]
list|ls [TERM...]
listall|lsa [TERM...]
Expand Down Expand Up @@ -201,6 +201,7 @@ actionsHelp()
Deprioritizes (removes the priority) from the task(s)
on line ITEM# in todo.txt.
done ITEM#[, ITEM#, ITEM#, ...]
do ITEM#[, ITEM#, ITEM#, ...]
Marks task(s) on line ITEM# as done in todo.txt.
Expand Down Expand Up @@ -1193,7 +1194,7 @@ case $action in
done
;;

"do" )
"do" | "done" )
errmsg="usage: $TODO_SH do ITEM#[, ITEM#, ITEM#, ...]"
# shift so we get arguments to the do request
shift;
Expand Down

0 comments on commit 7bce391

Please sign in to comment.