From 827912e4651d885f7ef92b4048b485fdd87a0bb0 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 23 Nov 2023 22:20:04 -0600 Subject: [PATCH] App now exits happily after providing help msg --- src/WallpaperEngine/Application/CApplicationContext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/WallpaperEngine/Application/CApplicationContext.cpp b/src/WallpaperEngine/Application/CApplicationContext.cpp index a4665c0..26b3070 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 @@ -167,6 +168,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[]) case 'h': printHelp (argv[0]); + std::exit(0); break; case 'f': @@ -209,6 +211,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[]) else { printHelp (argv[0]); + std::exit(0); } } @@ -290,4 +293,4 @@ void CApplicationContext::printHelp (const char* route) sLog.out ("\t--set-property \tOverrides the default value of the given property"); sLog.out ("\t--no-fullscreen-pause\tPrevents the background pausing when an app is fullscreen"); sLog.out ("\t--disable-mouse\tDisables mouse interactions"); -} \ No newline at end of file +}