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;
 
CmdLineArgs g_CmdLineArgs
Definition: CmdLineArgs.cpp:27
Definition: CmdLineArgs.h:29
std::vector< CStr > GetMultiple(const CStr &name) const
Get all the values given to the named parameter.
Definition: CmdLineArgs.cpp:94
std::vector< CStr > GetArgsWithoutName() const
Returns all arguments that don't have a name (string started with '-').
Definition: CmdLineArgs.cpp:112
CStr Get(const CStr &name) const
Get the value of the named parameter.
Definition: CmdLineArgs.cpp:88
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< std::pair< CStr, CStr > > ArgsT
Definition: CmdLineArgs.h:73
CmdLineArgs()
Definition: CmdLineArgs.h:31
std::vector< CStr > m_ArgsWithoutName
Definition: CmdLineArgs.h:76
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
ArgsT m_Args
Definition: CmdLineArgs.h:74
OsPath m_Arg0
Definition: CmdLineArgs.h:75
Simplifed version of std::span (C++20) as we don't support the original one yet.
Definition: Span.h:37