TTS v3.0.0
The Tiny Test System
Loading...
Searching...
No Matches
Configuration Utilities

Classes

struct  tts::options
 Command line arguments lightweight processor. More...

Functions

options const & tts::arguments ()
 Retrieve the current list of command line argument.
bool tts::is_detailed ()
 Check if verbose-only details should be reported.
bool tts::is_quiet ()
 Check if quiet mode is enabled.
bool tts::is_verbose ()
 Check if verbose mode is enabled.

Function Documentation

◆ arguments()

options const & tts::arguments ( )
inline

#include <tts/tools/options.hpp>

Retrieve the current list of command line argument.

See also
options
Returns
The pre-processed command line arguments as a reference to a tts::options instance.

◆ is_detailed()

bool tts::is_detailed ( )
inline

#include <tts/tools/options.hpp>

Check if verbose-only details should be reported.

Returns
true if verbose mode is enabled and quiet mode is not, false otherwise. This is the condition under which extra detail lines - like passing test confirmations or type hints - get reported: quiet mode always takes precedence over verbose mode.

◆ is_quiet()

bool tts::is_quiet ( )
inline

#include <tts/tools/options.hpp>

Check if quiet mode is enabled.

Returns
true if quiet mode is enabled, false otherwise. Quiet mode is enabled when the --quiet or -q command line argument is provided.

◆ is_verbose()

bool tts::is_verbose ( )
inline

#include <tts/tools/options.hpp>

Check if verbose mode is enabled.

Returns
true if verbose mode is enabled, false otherwise. Verbose mode is enabled when the --verbose or -v command line argument is provided.