CLI11 VS structopt

Compare CLI11 vs structopt and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
CLI11 structopt
12 3
3,087 451
2.9% -
8.5 0.0
6 days ago 5 months ago
C++ C++
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

CLI11

Posts with mentions or reviews of CLI11. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-13.

structopt

Posts with mentions or reviews of structopt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-08.
  • The Val Object Model : Dave Abrahams, Sean Parent, Dimitri Racordon, David Sankel
    7 projects | /r/cpp | 8 Nov 2022
  • cmdlime - possibly the least verbose command line parsing library for C++17
    3 projects | /r/cpp | 20 May 2021
    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.
  • structopt v0.1.2 released
    1 project | /r/cpp | 28 Apr 2021

What are some alternatives?

When comparing CLI11 and structopt you can also consider the following projects:

jarro2783/cxxopts - Lightweight C++ command line option parser

entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more

clipp - easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation

alpaca - Serialization library written in C++17 - Pack C++ structs into a compact byte-array without any macros or boilerplate code

gflags - The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used. Online documentation available at:

graphlite - A lightweight C++ graph library

args - A simple header-only C++ argument parser library. Supposed to be flexible and powerful, and attempts to be compatible with the functionality of the Python standard argparse library (though not necessarily the API).

clap-imgui - Minimal example of prototyping CLAP audio plugins using Dear ImGui as the user interface.

Boost.Program_options - Boost.org program_options module

cclap - C++ command line argument parser

Vcpkg - C++ Library Manager for Windows, Linux, and MacOS

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