Option Parsers for C/C++?

Paul Wicks picture Paul Wicks · Mar 12, 2009 · Viewed 19.4k times · Source

Possible Duplicate:
What parameter parser libraries are there for C++?

I've done some looking and there are a whole lot of libraries for command line option parsing, but it is difficult to differentiate between them. Does anyone have any experience with any of them? Is one harder/better/faster/easier/whatever than any of the others? Or should I just grow my own?

Answer

Head Geek picture Head Geek · Mar 12, 2009

If you want something completely cross-platform, I've found the Boost::Program_Options library to be very good. There's something of a learning curve to setting it up, but once you master that, it simplifies things greatly.