diff options
| -rwxr-xr-x | todo | 7 | 
1 files changed, 7 insertions, 0 deletions
@@ -49,6 +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 +  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>"  else    todo_list  fi  | 
