summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aee94e3..cfc5dd7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -129,6 +129,11 @@ int main( int argc, char** argv ) {
}
}
+ if( argc == 1 ) {
+ cout << "\nNo command specified. Printing help text.\n" << endl;
+ return get_help();
+ }
+
// If the init command was passed, we want to init before checking if the
// note path exists, otherwise the error will display and the store will
// never be initialized.

Generated by cgit