Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Functions
serac::cli Namespace Reference

Command line functionality. More...

Functions

std::unordered_map< std::string, std::string > defineAndParse (int argc, char *argv[], std::string app_description)
 Defines command line options and parses the found values. More...
 
void printGiven (std::unordered_map< std::string, std::string > &cli_opts)
 Prints all given command line options to the screen. More...
 

Detailed Description

Command line functionality.

Function Documentation

◆ defineAndParse()

std::unordered_map< std::string, std::string > serac::cli::defineAndParse ( int  argc,
char *  argv[],
std::string  app_description 
)

Defines command line options and parses the found values.

Parameters
[in]argcArgument count
[in]argvArgument vector
[in]app_descriptionDescription of application to be printed by usage
Returns
map of all given command line options

Definition at line 19 of file cli.cpp.

◆ printGiven()

void serac::cli::printGiven ( std::unordered_map< std::string, std::string > &  cli_opts)

Prints all given command line options to the screen.

Parameters
[in]cli_optsGiven command line options to be printed

Definition at line 104 of file cli.cpp.