arg
1.2
a C++ command-line parser
|
Positional arguments on command line. More...
#include <arg.hh>
Public Member Functions | |
Argument (std::string const &name) | |
positional argument with name More... | |
template<typename T > | |
Argument & | stow (T &t) |
stow value to streamable variable | |
Argument & | store (std::shared_ptr< Value > ptr=0) |
store value to "* ptr", the Value will be released by the Argument | |
Argument & | help (std::string const &text) |
help text | |
std::string const & | get_name () |
get name of the argument | |
std::string | get_help () |
get help text | |
void | process (std::string const &str) |
process string data | |
Positional arguments on command line.
Argument::Argument | ( | std::string const & | name | ) |
positional argument with name
name | name for the argument |