SourceForge.net Logo

ezOptionParser

  1. Overview
  2. Download
  3. Installation
  4. Examples
  5. News


Overview

It's another command-line parser class for C++ that has features not available in alternative solutions (getopt, boost, argtable, argstream) and doesn't require a high learning curve.

Features


Download

Source Code, Examples and Tests: ezopt-0.0.0.tgz
Source Code for immediate use: ezOptionParser.hpp
Source Code for online viewing: ezOptionParser.html


Installation and Testing

  1. tar -zxvf ezopt-*tgz
  2. cd examples; make
  3. make clean;


Examples

  1. complete.cpp A complete example that could be used as a starting point for your own C++ program.
  2. fileio.cpp Shows how to import and export options with files (that can contain comments!).
  3. full.cpp A full test of all the features. Meant for testing, but can be a source of ideas for what's possible.
  4. long.cpp Demo of using long flag names.
  5. multi.cpp Shows how to handle multiple instances of a flag.
  6. pretty.cpp Demo of pretty printing everything parsed, which can help in debugging.
  7. short.cpp Short demo of a short flag name.
  8. usage.cpp Demo of automatic usage message creation in three builtin layouts.
    Here are the how the three layouts appear:
    aligned
    interleaved
    staggered


News

Version 0.0.0 (5/11/2011)

1. Published on SourceForge.


Copyright (C) 2011 Remik Ziemlinski