Printing usage message if no ITEM# given to "todo.sh do".
This commit is contained in:
1
todo.sh
1
todo.sh
@@ -768,6 +768,7 @@ case $action in
|
||||
errmsg="usage: $TODO_SH do ITEM#[, ITEM#, ITEM#, ...]"
|
||||
# shift so we get arguments to the do request
|
||||
shift;
|
||||
[ "$#" -eq 0 ] && die "$errmsg"
|
||||
|
||||
# Split multiple do's, if comma seperated change to whitespace sepereated
|
||||
# Loop the 'do' function for each item
|
||||
|
||||
Reference in New Issue
Block a user