Tanl Linguistic Pipeline |
Given the traditional argc and argv for command-line arguments, extract options from them following the stream model. More...
#include <OptionStream.h>
Classes | |
class | Option |
Public Member Functions | |
OptionStream (int argc, char *argv[], Options::spec const [], std::ostream &=std::cerr) | |
int | shift () const |
operator bool () const | |
Friends | |
OptionStream & | operator>> (OptionStream &, Option &) |
Given the traditional argc and argv for command-line arguments, extract options from them following the stream model.
RATIONALE
Why not use the standard getopt() or GNU's getopt_long()? Because neither are thread-safe and I needed a thread-safe version.