18#ifndef INCLUDED_CMDLINEARGS
19#define INCLUDED_CMDLINEARGS
28namespace PS {
template <
typename T>
class span; }
33 using ArgsT = std::vector<std::pair<CStr, CStr>>;
44 CmdLineArgs(
const std::span<const char* const> argv);
50 bool Has(
const CStr& name)
const;
57 CStr
Get(
const CStr& name)
const;
63 std::vector<CStr>
GetMultiple(
const CStr& name)
const;
CmdLineArgs g_CmdLineArgs
Definition: CmdLineArgs.cpp:35
Definition: CmdLineArgs.h:31
std::vector< CStr > GetMultiple(const CStr &name) const
Get all the values given to the named parameter.
Definition: CmdLineArgs.cpp:102
std::vector< CStr > GetArgsWithoutName() const
Returns all arguments that don't have a name (string started with '-').
Definition: CmdLineArgs.cpp:125
CStr Get(const CStr &name) const
Get the value of the named parameter.
Definition: CmdLineArgs.cpp:96
bool Has(const CStr &name) const
Test whether the given name was specified, as either -name or -name=value
Definition: CmdLineArgs.cpp:91
const ArgsT & GetArgs() const
Returns all arguments that don't have a name (string started with '-').
Definition: CmdLineArgs.cpp:120
CmdLineArgs()
Definition: CmdLineArgs.h:35
std::vector< CStr > m_ArgsWithoutName
Definition: CmdLineArgs.h:84
OsPath GetArg0() const
Get the value of argv[0], which is typically meant to be the name/path of the program (but the actual...
Definition: CmdLineArgs.cpp:115
std::vector< std::pair< CStr, CStr > > ArgsT
Definition: CmdLineArgs.h:33
ArgsT m_Args
Definition: CmdLineArgs.h:82
OsPath m_Arg0
Definition: CmdLineArgs.h:83
Definition: CmdLineArgs.h:28
Definition: GUIManager.h:45