App now exits happily after providing help msg

This commit is contained in:
Ryan 2023-11-23 22:20:04 -06:00 committed by Alexis Maiquez
parent 21c38d9fd1
commit 827912e465

View File

@ -3,6 +3,7 @@
#include "Steam/FileSystem/FileSystem.h" #include "Steam/FileSystem/FileSystem.h"
#include "WallpaperEngine/Logging/CLog.h" #include "WallpaperEngine/Logging/CLog.h"
#include <cstdlib>
#include <cstring> #include <cstring>
#include <getopt.h> #include <getopt.h>
@ -167,6 +168,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[])
case 'h': case 'h':
printHelp (argv[0]); printHelp (argv[0]);
std::exit(0);
break; break;
case 'f': case 'f':
@ -209,6 +211,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[])
else else
{ {
printHelp (argv[0]); printHelp (argv[0]);
std::exit(0);
} }
} }