aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAche <ache@ache.one>2016-05-20 04:42:59 +0200
committerAche <ache@ache.one>2016-05-20 04:42:59 +0200
commit4c95eec699481150ee69a45edb9275ee84425c4c (patch)
tree2dd9d29c20cc7928130252e8cb382c5b94bc4a3e
parentFix unchecked (diff)
unchecked alias todo
-rw-r--r--todo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/todo.cpp b/todo.cpp
index a359640..93afa39 100644
--- a/todo.cpp
+++ b/todo.cpp
@@ -84,13 +84,13 @@ int main(int argc, char *argv[]) {
action = 6;
}else if ( !strcmp( argv[1], "clean") || !strcmp( argv[1], "clear") ) {
action = 7;
- }else if ( !strcmp( argv[1], "unchecked") ) {
+ }else if ( !strcmp( argv[1], "unchecked") || !strcmp( argv[1], "todo") ) {
action = 8;
}else {}
else
action = 0;
if( action == -1 ) {
- cout << "Usage : todo [show,add,remove,check,set,clean/clear,checked,unchecked]" << endl;
+ cout << "Usage : todo [show,add,remove,check,set,clean/clear,checked,unchecked/todo]" << endl;
} else {
ifstream file(".todo.txt", ios::in);