Index: source/main.cpp =================================================================== --- source/main.cpp +++ source/main.cpp @@ -506,6 +506,37 @@ g_CmdLineArgs = args; + if (args.Has("help")) + { + // How to get and cast the string properly? + // debug_printf("Usage: %s [OPTION]...\n", c.GetArg0().string()); + // Hardcode it for now... + debug_printf("\ +Usage: pyrogenesis [OPTION]...\n\n"); + debug_printf("\ + -unique-logs \n"); + debug_printf("\ + -writableRoot write all data to a subdirectory of the root\n"); + debug_printf("\ + -autostart-nonvisual \n"); + debug_printf("\ + -unique-logs \n"); + debug_printf("\ + -replay \n"); + debug_printf("\ + -replay-visual \n"); + debug_printf("\ + -autostart-nonvisual \n"); + debug_printf("\ + -autostart=[MAPNAME] \n"); + debug_printf("\ + -rl-interface \n"); + debug_printf("\ + -version display version and exit\n"); + + return; + } + if (args.Has("version")) { debug_printf("Pyrogenesis %s\n", engine_version);