26#include <lyra/cli.hpp>
42inline auto default_main(
int argc,
const char** argv)
noexcept ->
int {
46 if (parser.
config().show_help) {
47 std::cout << parser.
cli()
54 }
catch (
const std::exception& e) {
55 std::cerr <<
"Error: " << e.what()
67#define STAT_BENCH_IMPL_DEFAULT_MAIN \
68 auto main(int argc, const char** argv) -> int { \
69 return ::stat_bench::impl::default_main(argc, argv); \
Class to parse command line arguments.
auto config() -> const Config &
Get the configuration.
auto cli() -> lyra::cli &
Access to the command line interface definition.
void parse_cli(int argc, const char **argv)
Parse command line arguments.
Class of runners of benchmarks.
Definition of CommandLineParser class.
Definition of Runner class.
Namespace of internal implementation.
auto default_main(int argc, const char **argv) noexcept -> int
Default main function.
Namespace of classes to run benchmarks.
Namespace of stat_bench source codes.
Definition of Runner class.