FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
getopt Struct Reference

Command-line parser. More...

Public Member Functions

 getopt ()
 Collect program_option objects.
 
void operator() (int, const char *const *) const
 Parse command-line arguments.
 
std::string usage (std::string_view p) const
 Return a string describing program_option objects.
 

Detailed Description

Command-line parser.

The options defined by initialize are not recognized.

Constructor & Destructor Documentation

◆ getopt()

getopt ( )
explicit

Collect program_option objects.

Member Function Documentation

◆ operator()()

void operator() ( int  argc,
const char *const *  argv 
) const

Parse command-line arguments.

Populate program_option objects with the results.

Exceptions
std::logic_errorif parsing fails

◆ usage()

std::string usage ( std::string_view  p) const

Return a string describing program_option objects.

Parameters
pprogram name