I've been googling this morning trying to find more information about getopt usage and I haven't found anything I didn't really already know. I'm looking to see if getopt supports two features.
1) An option that may or may not be followed by an argument
For example, `-h` by itself prints out the basic help/usage message, but `-h c` prints detailed information about the `-c` argument. I've found no such way to do this with getopt
2) An option can be followed by any number of arguments
For example, let's say I want to turn on debug printing with the `-d` option. `-d all` would turn on debugging print messages for the entire program. `-d audio video` would turn on debugging for just the audio and video sections. Etc. But it seems that getopt only supports a single argument per option...?
Am I just toally missing something here? Does getopt really lack the functionality to do these two things? I can't for the life of me find anything that either confirms or denies the existance of the two said features. Any gurus hanging around?