18 #ifndef INCLUDED_CMDLINEARGS 19 #define INCLUDED_CMDLINEARGS 46 bool Has(
const CStr& name)
const;
53 CStr
Get(
const CStr& name)
const;
59 std::vector<CStr>
GetMultiple(
const CStr& name)
const;
73 typedef std::vector<std::pair<CStr, CStr> >
ArgsT;
81 #endif // INCLUDED_CMDLINEARGS std::vector< CStr > GetArgsWithoutName() const
Returns all arguments that don't have a name (string started with '-').
Definition: CmdLineArgs.cpp:112
CmdLineArgs()
Definition: CmdLineArgs.h:31
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:107
CStr Get(const CStr &name) const
Get the value of the named parameter.
Definition: CmdLineArgs.cpp:88
std::vector< CStr > GetMultiple(const CStr &name) const
Get all the values given to the named parameter.
Definition: CmdLineArgs.cpp:94
ArgsT m_Args
Definition: CmdLineArgs.h:74
std::vector< std::pair< CStr, CStr > > ArgsT
Definition: CmdLineArgs.h:73
Definition: CmdLineArgs.h:28
OsPath m_Arg0
Definition: CmdLineArgs.h:75
CmdLineArgs g_CmdLineArgs
Definition: CmdLineArgs.cpp:27
bool Has(const CStr &name) const
Test whether the given name was specified, as either -name or -name=value
Definition: CmdLineArgs.cpp:83
std::vector< CStr > m_ArgsWithoutName
Definition: CmdLineArgs.h:76
Simplifed version of std::span (C++20) as we don't support the original one yet.
Definition: Span.h:36