Command line processing macros. Applications should use these macros to present a consistent interface.
More...
Command line processing macros. Applications should use these macros to present a consistent interface.
The following is an example usage
int main(int argc, char* argv[])
{
int integerVariable = 0;
const char *stringVariable = NULL;
DRWN_BEGIN_CMDLINE_PROCESSING(argc, argv)
DRWN_CMDLINE_INT_OPTION("-intgerOption", integerVariable)
DRWN_CMDLINE_STR_OPTION("-stringOption", stringVariable)
DRWN_CMDLINE_OPTION_BEGIN("-longOption", p)
cerr << p[0] << "\n";
cerr << p[1] << "\n";
DRWN_CMDLINE_OPTION_END(2)
DRWN_END_CMDLINE_PROCESSING();
return 0;
}
- See Also
- Command Line Processing