From ffa47f36cdb8a3bc160ea46075e95516e5fda8c8 Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Sat, 13 Nov 2010 23:33:31 +0100 Subject: [PATCH] no arguments will show help --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index fbe9705..48fa387 100644 --- a/main.cpp +++ b/main.cpp @@ -34,6 +34,10 @@ int main(int argc, char *argv[]) { unsigned int width = DEFAULT_WIDTH; unsigned int height = DEFAULT_HEIGHT; + if ( argc <= 1 ) { + showHelpText(); + } + for ( int i = 1; i < argc; ++i ) { if ( strcmp(argv[i], "-v") == 0 ) { verbose = 1;