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). (by Taywee)
docopt.cpp
C++11 port of docopt (by docopt)
Our great sponsors
args | docopt.cpp | |
---|---|---|
2 | 4 | |
1,276 | 1,029 | |
- | 0.1% | |
2.1 | 0.0 | |
about 1 year ago | 18 days ago | |
C++ | C++ | |
MIT License | Boost Software License 1.0 |
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.
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.
args
Posts with mentions or reviews of args.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-16.
-
Conan: how to obtain header-only lib for source distribution?
I'm using Conan on a little project. One of the dependencies for the project is a single-header, header-only lib. Usually, I use the cmake_find_package generator and it works fine. Conan downloads the library into its system-wide library store, and generates a Findargs.cmake file in the build dir, which references that global path.
- 3 Ways To Parse Command Line Arguments in C++: Quick, Do-It-Yourself, Or Comprehensive
docopt.cpp
Posts with mentions or reviews of docopt.cpp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-30.
-
What are different options for CLI besides getopt and getopt_long?
Is C++, but docopt is great for CLI arguments. docopt is available in other language as well, e.g. python. The nice thing about docopt is that the command line arguments/syntax is automagically derived from your 'help' string.
-
Command Line Flags in C++, A Minimalist's Guide
docopt
-
3 Ways To Parse Command Line Arguments in C++: Quick, Do-It-Yourself, Or Comprehensive
Available for many languages. Link to C++ version: https://github.com/docopt/docopt.cpp
-
Command line arguments best practices
You can try https://github.com/docopt/docopt.cpp It's also available in vcpkg (c++ package manager)
What are some alternatives?
When comparing args and docopt.cpp you can also consider the following projects:
CLI11 - CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
Boost.Program_options - Boost.org program_options module
jarro2783/cxxopts - Lightweight C++ command line option parser
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:
Ncurses - ncurses Git mirror
termbox - Library for writing text-based user interfaces
Argh! - Argh! A minimalist argument handler.