diff options
-rwxr-xr-x | todo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,13 +49,13 @@ if [ "$OPTION" == "list" ]; then todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|" elif [ "$OPTION" == "count" ]; then todo_find | grep -v $NAME | wc -l -elif [ "$OPTION" == "see" ]; then +elif [ "$OPTION" == "show" ]; then if [ ! -z "$2" ] && [ -e "$2" ]; then grep "TODO" $2 | sed -e 's/^ *//' fi elif [ "$OPTION" == "help" ]; then echo "usage: $BASENAME [list|count]" - echo " $BASENAME see <file>" + echo " $BASENAME show <file>" else todo_list fi |