Good morning all...

..or at least, all of you who are on this side of the planet; g'day mate
to Craig et al!

Thanks for the interest.  I don't have a pastebin account, but I figured
a plain old link would do:
http://home.bawue.de/~steve/cliparser.zip

I made an example.cc file showing how to use it (but there are also
Doxygen comments in the header files).  Quick summary:

CliParser cp;
cp.addOption( CliOption(
    QStringList() << "f" << "foo",
    true ) ); // parameter required
cp.parse();  // Uses QCoreApplication by default
// Get all values of -f/--foo
QStringList fooList = cp.getArgumentList( "f" );


Note:
- I'm releasing this under the LGPL.
- I didn't even try to compile example.cc!
- The code will need some changes before it could be added to Qt
  (eg: std::bad_alloc handling, static const -> const)
- Probably lots of other changes too - coding style, names,
  interface etc...


Enjoy!

Steve
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to