cmdlime - possibly the least verbose command line parsing library for C++17

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cmdlime

    Possibly the least verbose command line parsing library for C++

  • structopt

    Parse command line arguments by defining a struct (by p-ranav)

  • Hello everyone! I'm not a reddit user, but my previously open-sourced projects have been only seen by one of my coworkers and I can't even find them on google, so I'm trying to get some visibility) It's just a command line parser, but it uses the idea of declaring the structure which acts as the data scheme for the parser and result storage simultaneously, which I think is the best possible approach for the problem. I was excited when I discovered it with the structopt library, but I had too many gripes with its interface (required duplication of your structure content in the macro, everything besides positional arguments has to be wrapped in std::optional, inability to set parameters' description to the help message, etc), so I've built an alternative that doesn't tick me off. At least so far) I hope someone finds it interesting.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • CLI11

    CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.

  • Maybe https://github.com/CLIUtils/CLI11? I really like this one and it looks like it supports TOML

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts