Command line arguments lightweight processor.
More...
Command line arguments lightweight processor.
- See also
- option
#define TTS_MAIN
#include <tts/tts.hpp>
{
};
{
};
#define TTS_EXPECT(EXPR,...)
Checks that an expression is true.
Definition basic.hpp:69
#define TTS_EQUAL(LHS, RHS,...)
Checks that two expressions are equal.
Definition relation.hpp:186
#define TTS_CASE(ID)
Defines a test case and registers it with the test driver.
Definition case.hpp:304
T value(Flags... fs) const
Returns a value of type T if a flag matches any of the strings in fs or T{} otherwise.
Definition options.hpp:187
Generates the same value at every call.
Definition generator.hpp:398
|
|
bool | is_valid () const |
| | Checks if current options set is not empty.
|
|
template<std::same_as< char const * >... Flags> |
| bool | operator() (Flags... fs) const |
| | Checks if qny flag fs is set on the command line.
|
|
bool | operator[] (char const *f) const |
| | Checks if the flag f is set on the command line.
|
|
template<typename T, std::same_as< char const * >... Flags> |
| T | value (Flags... fs) const |
| | Returns a value of type T if a flag matches any of the strings in fs or T{} otherwise.
|
|
template<typename T, std::same_as< char const * >... Flags> |
| T | value (T that, Flags... fs) const |
| | Returns a value of type T if a flag matches any of the strings in fs or that otherwise.
|