Skip to content

criptych/argparse-cpp

 
 

Repository files navigation

============ 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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 99.1%
  • Makefile 0.9%