From 87c682dc0b53c8fd120bf67cba71096ada543cf6 Mon Sep 17 00:00:00 2001 From: Nullspoon Date: Tue, 7 Oct 2014 20:02:38 -0600 Subject: 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. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3