X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmain.cpp;h=1a07961092fbb467fd8dd80439a015d0824d6698;hb=09163ba404c6a1a43c03f8f84c23322de31099f4;hp=ee810cddc5aa367cce7016e3ffc2a748298bc417;hpb=94b625cc6c87bf3662ec2ce4062f369732da9dc4;p=supertux.git diff --git a/src/main.cpp b/src/main.cpp index ee810cddc..1a0796109 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -215,7 +215,9 @@ static void print_usage(const char* argv0) " --help Show this help message\n" " --version Display SuperTux version and quit\n" " --console Enable ingame scripting console\n" + " --noconsole Disable ingame scripting console\n" " --show-fps Display framerate in levels\n" + " --no-show-fps Do not display framerate in levels\n" " --record-demo FILE LEVEL Record a demo to FILE\n" " --play-demo FILE LEVEL Play a recorded demo\n" "\n")); @@ -265,8 +267,12 @@ static bool parse_commandline(int argc, char** argv) } } else if(arg == "--show-fps") { config->show_fps = true; + } else if(arg == "--no-show-fps") { + config->show_fps = false; } else if(arg == "--console") { config->console_enabled = true; + } else if(arg == "--noconsole") { + config->console_enabled = false; } else if(arg == "--disable-sfx") { config->sound_enabled = false; } else if(arg == "--disable-music") { @@ -289,6 +295,7 @@ static bool parse_commandline(int argc, char** argv) config->start_level = arg; } else { log_warning << "Unknown option '" << arg << "'. Use --help to see a list of options" << std::endl; + return true; } }