Tom Plunket wrote:
31337one wrote:
http://www.codeproject.com/useritems/SimpleOpt.asp
That does not appear to support multiple arguments per option. I have
already looked into it.
For a "elite one", it seems a strange question to ask.
Especially considering I recently implemented a typesafe command-line
parser that automatically dumped the options into same-named global
variables with TDD in like 100 lines of code. It's not exactly rocket
science.
I can't share the code as it was written in the employ of a company.
I have written a command line parser for my project as well. Other
engineers that I am working with want to a use some standard command
line parser. They suggest getopt but its not even in Visual Studio.
They point me to a windows port of it, well it needs to be on both
windows andl linux. Well there isnt a STANDARD one for both linux and
windows that has the options I need.
If it was my choice, I'd use my parser, it works fine, it supports
multiple arguments per option and its already done and implemented.
Finding one to replace it is wasting more time than it is worth.
Yeah, it does feel dumb asking this question. I have scoured the
internet for something small and compatible and had no luck.