I'm having a problem with getopt where it won't accept multiple options.
Let's say I have this:
./program -a <optarg> -b <optarg>
getopt only seems to recognize and return the first switch (-a) and totally ignores the second (-b).
Perhaps I'm overlooking something?
Edit: Nevermind! The counter in my loop was set wrongly.



LinkBack URL
About LinkBacks


