shanqing-cai / argparse-cpp

C++ emulation of Python argparse (with added features)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

============ argparse-cpp

argparse-cpp is a tool for parsing command line arguments. It generally follows the style of Python argparse.

Features:

  • Print-out of formatted help information
  • Support Boolean, integer, float and string types
  • Support multiple arguments per optional switch
  • Can set default values for optional switches
  • Can set acceptance ranges for string and numerical values (e.g., >0<=100.3)
  • Can combine multiple Boolean switches (e.g., -c, -d --> -cd)

See argparse_example.cpp for example usages.

Author: Shanqing Cai (shanqing.cai@gmail.com) Date: Feb. 2014

About

C++ emulation of Python argparse (with added features)

License:Apache License 2.0


Languages

Language:C++ 100.0%