When parsing command line arguments with GNU
getopt command, how do I (if possible) do recognize
-? as another option? Is there a way to escape it in the opstring?
The man page getopt(3) states:
Even if you could recognize that as an option string, it would be a really bad idea to use the question mark character as a real argument because most shells use this as part of their glob syntax (representing that the character before it is optionally use or not in the match). Passing a litteral
If you are creating a help option of some kind the usual syntax is to look for short and long options of