diff options
author | Nullspoon <nullspoon@iohq.net> | 2014-10-07 20:02:38 -0600 |
---|---|---|
committer | Nullspoon <nullspoon@iohq.net> | 2014-10-07 20:02:38 -0600 |
commit | 87c682dc0b53c8fd120bf67cba71096ada543cf6 (patch) | |
tree | 2f906a567290b56c2082302b9de0df5d06342929 | |
parent | 0dffc9bbb2ff39e34a5ae9a1faf63f668b055c48 (diff) | |
download | noteless-87c682dc0b53c8fd120bf67cba71096ada543cf6.tar.gz noteless-87c682dc0b53c8fd120bf67cba71096ada543cf6.tar.xz |
Added unknown command or note name return 1
Was returning 0 when failing to find note or command. Definitely note a success
scenario and not good for programatically interfacing via scripts.
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index bbfe566..9a6712e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -185,6 +185,7 @@ int main( int argc, char** argv ) { return list.edit( editor, arg ); } else { cout << "Error: Unknown command or note name '" << arg << "'." << endl; + return 1; } } return 0; |