arg
1.2
a C++ command-line parser
|
A Parser that is a Value itself. More...
#include <arg.hh>
Public Member Functions | |
void | set (std::string const &str) |
convert the str to value and put it in storage | |
Public Member Functions inherited from arg::Value | |
virtual std::string | to_str () const |
convert the value to a string | |
virtual std::string | get_type () const |
type name of the value | |
Public Member Functions inherited from arg::Parser | |
void | add_help (std::string const &msg) |
add additional help text between option helps | |
Option & | add_opt (int key, std::string const &name="", bool hide=false) |
add an Option | |
Option & | add_opt (std::string const &name, bool hide=false) |
add an Option without a specified key | |
Option & | get_opt (std::string const &name) |
get an existing Option | |
std::vector< std::string > & | args () |
void | parse (int argc, char *argv[], bool ignore_unknown=false) |
perform command-line parsing More... | |
void | set_header (std::string const &text) |
set the header in help | |
std::string const & | get_header () const |
get the header text of help | |
Additional Inherited Members | |
Protected Attributes inherited from arg::Parser | |
std::string | prog_name |
name to identify the program | |