5#include <unordered_map>
6#include <unordered_set>
56 static void Parse(
int argc,
char** argv);
63 static std::string
GetValue(
const std::string& flag,
64 const std::string& defaultVal =
"");
67 static bool HasFlag(
const std::string& flag);
70 static void(*s_helpCallback)(
const char* exe);
71 static std::unordered_map<std::string, std::string> s_values;
72 static std::unordered_set<std::string> s_flags;
static std::string GetValue(const std::string &flag, const std::string &defaultVal="")
Returns the raw string value stored for -flag, or defaultVal if it was not passed.
static void SetHelpCallback(void(*callback)(const char *exe))
static bool HasFlag(const std::string &flag)
True if --flag was present on the command line.
static void Parse(int argc, char **argv)
Parses argv into the value/flag tables. Call once from main(), before Application.
Root namespace for everything the engine exposes.