I'm quite fond of using GNU getopt, when programming under Linux. I understand, that getopt(), is not available under MS VC++.
Note:
Question:
This may help, it's also very easy to integrate
http://www.codeproject.com/KB/cpp/xgetopt.aspx
There is some old code originally by IBM that is available as-is. It only has implementation for getopt, not the _long variants. It's available on http://plexfx.org/news/files/70411c2c371bd686273a8bebc42c45c5-3.html
You will have to check out the license requirements, but the source to the GCC libraries is freely available. Just grab getopt() from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With