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 "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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user