Skip to content

Commit

Permalink
App now exits happily after providing help msg
Browse files Browse the repository at this point in the history
  • Loading branch information
trainzkid authored and Almamu committed Dec 11, 2023
1 parent 21c38d9 commit 827912e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WallpaperEngine/Application/CApplicationContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Steam/FileSystem/FileSystem.h"
#include "WallpaperEngine/Logging/CLog.h"

#include <cstdlib>
#include <cstring>
#include <getopt.h>

Expand Down Expand Up @@ -167,6 +168,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[])

case 'h':
printHelp (argv[0]);
std::exit(0);
break;

case 'f':
Expand Down Expand Up @@ -209,6 +211,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[])
else
{
printHelp (argv[0]);
std::exit(0);
}
}

Expand Down Expand Up @@ -290,4 +293,4 @@ void CApplicationContext::printHelp (const char* route)
sLog.out ("\t--set-property <name=value>\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");
}
}

0 comments on commit 827912e

Please sign in to comment.