Carl Pearson 3762a517a6 remove cache
2020-03-24 08:27:23 -05:00
ci
2020-03-24 08:25:04 -05:00
2020-03-24 08:18:43 -05:00
2020-03-24 08:18:43 -05:00
2020-03-24 08:18:43 -05:00
2020-03-24 08:18:43 -05:00
2020-03-24 08:27:23 -05:00
2020-03-24 08:18:43 -05:00
2020-03-24 08:20:27 -05:00

argparse

Build Status

Simple single-file header-only CLI option parsing for C++. No subcommands, grouped commands.

Getting Started

Download the latest argparse.hpp and include it in your project.

Features

  • allow (default) / disallow (Parser::no_unrecognize()) unrecognized options and flags
  • optional/required (PosnlBase::required()) positional arguments
  • flags with -s, --long-flag formats
  • options with --long-opt val format
  • positional arguments
  • -- to stop parsing options and flags
  • modify argc/argv (disable with Parser::no_consume())
  • Option Types
    • int
    • size_t
    • float
    • double
    • std::string

Roadmap

  • examples
  • Help string output
  • support --long-option=value
  • have the last positional argument fill a vector with remaining
Description
Limited single-header-only CLI parsing for C++ without std::regex
Readme Apache-2.0 175 KiB
Languages
C++ 89.6%
CMake 7%
Shell 3.4%