Proton
1.1.1
Make porting easy from Python to C++11
|
get options More...
Functions | |
std::tuple< vector_ < std::tuple< str, str > >, vector_< str > > | proton::getopt (int argc, char *const argv[], const str &optstr, const vector_< str > &longopt={}) |
like getopt in python. |
get options
std::tuple<vector_<std::tuple<str, str> >, vector_<str> > proton::getopt | ( | int | argc, |
char *const | argv[], | ||
const str & | optstr | ||
) |
like getopt in python.
Note: the prototype above is wrong due to some bugs of doxygen, use the prototype in the function list (above the "detailed description" line).
argc | argc in main() |
argv | argv in main() |
optstr | the option string |
longopt | the long option arrays |
std::invalid_argument |