mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
App now exits happily after providing help msg
This commit is contained in:
parent
21c38d9fd1
commit
c7e804e4a9
@ -3,6 +3,7 @@
|
||||
#include "Steam/FileSystem/FileSystem.h"
|
||||
#include "WallpaperEngine/Logging/CLog.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <getopt.h>
|
||||
|
||||
@ -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 <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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user