molecular
|
Easy processing of argc and argv. More...
#include <CommandLineParser.h>
Classes | |
class | Arg |
class | Flag |
Option without parameter. More... | |
class | HelpFlag |
Displays help. More... | |
class | Option |
Command line option with parameter. More... | |
class | OptionBase |
class | PositionalArg |
class | PositionalArgBase |
Public Member Functions | |
void | Parse (int argc, char **argv) |
Parse command line arguments. More... | |
void | PrintHelp () |
Print usage information. More... | |
Easy processing of argc and argv.
Example:
void molecular::util::CommandLineParser::Parse | ( | int | argc, |
char ** | argv | ||
) |
Parse command line arguments.
Throws on failure.
void molecular::util::CommandLineParser::PrintHelp | ( | ) |
Print usage information.
Alternatively, add a HelpFlag.