From d589fd0570e2e473906bd96d882e91bce65fd1a3 Mon Sep 17 00:00:00 2001 From: kh80 Date: Thu, 12 Apr 2018 03:34:19 +0900 Subject: [PATCH] Add 'done' option as alias of 'do' (#169) --- todo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index 66c3562..df56640 100755 --- a/todo.sh +++ b/todo.sh @@ -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...] @@ -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. @@ -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;