I'm trying to run the following code:
struct arg_lit *argHelp = arg_lit0("?", "help", "print this help and exit");
But argument "?" just isn't working.
progname -?
progname: invalid option "-?"
With any other argument in place of "?" the code is working. Thus, the error is in "?".
The '?' character is a glob pattern that expands to an arbitrary character. It's a reserved character, so you should not use it as a command option name.
I'm trying to run the following code: struct arg_lit *argHelp = arg_lit0("?", "help", "print this help and exit"); But argument "?" just isn't working.
progname -? progname: invalid option "-?"
With any other argument in place of "?" the code is working. Thus, the error is in "?".