1
Fork 0

no arguments will show help

This commit is contained in:
Joshua Moerman 2010-11-13 23:33:31 +01:00
parent 941f6c6c2b
commit ffa47f36cd

View file

@ -34,6 +34,10 @@ int main(int argc, char *argv[]) {
unsigned int width = DEFAULT_WIDTH; unsigned int width = DEFAULT_WIDTH;
unsigned int height = DEFAULT_HEIGHT; unsigned int height = DEFAULT_HEIGHT;
if ( argc <= 1 ) {
showHelpText();
}
for ( int i = 1; i < argc; ++i ) { for ( int i = 1; i < argc; ++i ) {
if ( strcmp(argv[i], "-v") == 0 ) { if ( strcmp(argv[i], "-v") == 0 ) {
verbose = 1; verbose = 1;