diff -r 3c04e05ab24f -r 67b6ef6917ba src/main.cpp --- a/src/main.cpp Wed Jul 17 03:06:21 2013 +0300 +++ b/src/main.cpp Wed Jul 17 18:46:47 2013 +0300 @@ -2,9 +2,10 @@ #include #include "types.h" #include "config.h" +#include "demo.h" const list g_zanVersions ({ - "1.1", + "1.1-r130716-1906M", }); // ============================================================================= @@ -15,8 +16,6 @@ app.setOrganizationName( UNIXNAME ); app.setApplicationVersion( versionString() ); - print( "Settings path: %1\n", QSettings().fileName() ); - for( int i = 1; i < argc; ++i ) { str arg = argv[i]; @@ -26,7 +25,13 @@ } } - return app.exec(); + if( argc != 2 ) { + fprint( stderr, "Usage: %1 - Launch a demo file\n", argv[0] ); + fprint( stderr, " %1 --config - Configure " APPNAME "\n", argv[0] ); + return 255; + } + + return launchDemo( argv[1] ); } // =============================================================================