diff --git a/src/WallpaperEngine/Application/CApplicationContext.cpp b/src/WallpaperEngine/Application/CApplicationContext.cpp index e7840cb..7798add 100644 --- a/src/WallpaperEngine/Application/CApplicationContext.cpp +++ b/src/WallpaperEngine/Application/CApplicationContext.cpp @@ -3,6 +3,7 @@ #include "Steam/FileSystem/FileSystem.h" #include "WallpaperEngine/Logging/CLog.h" +#include #include #include @@ -190,6 +191,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[]) case 'h': printHelp (argv[0]); + std::exit(0); break; case 'f': @@ -268,6 +270,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[]) else { printHelp (argv[0]); + std::exit(0); } } @@ -353,4 +356,4 @@ void CApplicationContext::printHelp (const char* route) \t\t For default wallpaper last specified value will be used.\n\ \t\t Example: ./wallengine --scaling stretch --screen-root eDP-1 --bg 2667198601 --scaling fill --screen-root eDP-2 2667198602"); sLog.out ("\t--clamping \t Clamping mode for all wallpapers. Can be clamp, border, repeat. Enables GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER, GL_REPEAT accordingly. Default is clamp."); -} \ No newline at end of file +}