I\'m implementing a command line tool, and I need to be able to handle a bunch of options. Some of the options must terminate the program after they\'re done. For example I
There is no way to make getopt itself handle this. The easiest way would be to create a flags bitmap, as @tfahl suggested.
getopt