#include <cmd-line-args.hpp>
|
| CommandLineArgs (int argc, char *argv[], const std::vector< std::string > &allowedFlags={}) |
|
std::string | get (const std::string &flag, const std::string &defaultValue="") const |
|
bool | hasFlag (const std::string &flag) const |
|
const std::vector< std::string > & | getPositionalArgs () const |
|
void | printUsage (const std::string &programName) const |
|
◆ CommandLineArgs()
CommandLineArgs::CommandLineArgs |
( |
int | argc, |
|
|
char * | argv[], |
|
|
const std::vector< std::string > & | allowedFlags = {} ) |
|
inline |
◆ get()
std::string CommandLineArgs::get |
( |
const std::string & | flag, |
|
|
const std::string & | defaultValue = "" ) const |
|
inline |
◆ getPositionalArgs()
const std::vector< std::string > & CommandLineArgs::getPositionalArgs |
( |
| ) |
const |
|
inline |
◆ hasFlag()
bool CommandLineArgs::hasFlag |
( |
const std::string & | flag | ) |
const |
|
inline |
◆ printUsage()
void CommandLineArgs::printUsage |
( |
const std::string & | programName | ) |
const |
|
inline |
The documentation for this class was generated from the following file: