Command line arguments lightweight processor.
More...
#include <tts/tools/option.hpp>
Command line arguments lightweight processor.
- See also
- arguments
#define TTS_MAIN
#include <tts/tts.hpp>
{
};
{
};
#define TTS_EXPECT(EXPR,...)
Check if a given expression evaluates to true.
Definition basic.hpp:46
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition case.hpp:147
inline ::tts::options const & arguments()
Retrieve the current list of command line argument.
Definition option.hpp:158
#define TTS_EQUAL(LHS, RHS,...)
Performs equality comparison between two expressions.
Definition relation.hpp:90
|
|
bool | is_valid () |
| | Checks if current options set is not empty.
|
| |
|
bool | operator[] (const char *f) const |
| | Checks if the flag f is set on the command line.
|
| |
|
bool | operator[] (params_t fs) const |
| | Checks if any flag from with the strings fs is set on the command line.
|
| |
|
template<typename T > |
| T | value (const char *f, T that={}) const |
| | Returns a value of type T if a flag matches the string f or that otherwise.
|
| |
|
template<typename T > |
| T | value (params_t fs, T that={}) const |
| | Returns a value of type T if a flag matches any of the strings in fs or that otherwise.
|
| |