Skip to content

saveman/octargs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GitHub License GitHub Release GitHub Release Build Status Coverity Scan

OCTARGS - Argument Parsing Library

OCTARGS is a C++ library for parsing command line arguments.

  • Header-only library.
  • Requires C++11.
  • Released under MIT license.

Features supported:

  • Arguments without values (e.g. "--verbose").
  • Arguments with values (e.g. "--level=9", "--jobs 9").
  • Exclusive arguments (e.g. "--help").
  • Positional arguments (e.g. "cat file1.txt file2.txt").
  • Short and long names (e.g. "-j", "--jobs", "--parallel-jobs").
  • Subparsers (e.g. "git add ", "git init ").
  • Default values
  • Limiting allowed values
  • Converting values to a requested type (with checking)
  • Storing converted values in object variables automatically (with checking and automatic type detection).
  • Automatic usage documentation.
  • Support for char and wchar_t character types (and more with a limited effort).

Documentation

Project documentation is generated using Doxygen and hosted on GitHub pages.

Examples

Short code snippets showing general concepts are available in the documentation. For a more complicated examples take a look into Examples folder.