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,...)
Check if a given expression evaluates to true.
Definition basic.hpp:43
#define TTS_EQUAL(LHS, RHS,...)
Performs equality comparison between two expressions.
Definition relation.hpp:134
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition case.hpp:147
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:145
Defines a data generator that always return the same value.
Definition generator.hpp:330
|
|
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.
|