Projects / The Lean Mean C++ Option Parser

The Lean Mean C++ Option Parser

The Lean Mean C++ Option Parser handles program arguments (argc, argv). It supports the short and long option formats of getopt(), getopt_long(), and getopt_long_only(), but has a more convenient interface. It is a freestanding, header-only library with no dependencies, not even libc or STL. It comes with a usage message formatter which supports column alignment and line wrapping, making it ideal for localized messages with different lengths.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  18 May 2012 20:24

    Release Notes: The code is now compatible with Microsoft Visual C++.

    •  02 Mar 2012 08:29

      Release Notes: This release changes Arg::Optional to accept arguments if they are attached rather than separate. This is what GNU getopt() does and how POSIX recommends utilities should interpret their arguments.

      •  11 Feb 2012 11:06

        Release Notes: This version implements argument reordering as performed by GNU getopt() in its non-POSIX default mode. Argument reordering allows mixing non-option arguments with options.

        •  23 Jan 2012 05:59

          Release Notes: This is the initial release.

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.