7 个仓库
Argument parsers and CLI libraries for C++ development.
Explore 7 awesome GitHub repositories matching part of an awesome list · C++ CLI Frameworks. Refine with filters or upvote what's useful.
cxxopts 是一个仅包含头文件的 C++ 命令行解析器,用于为控制台应用程序定义必需选项、默认值和位置参数。它作为一个轻量级工具,使用短标志和长标志将命令行参数解析为类型化值,并自动生成格式化的帮助信息和文档。 该库提供了参数规范功能,允许定义选项描述、类型和布尔标志。它支持将多值选项收集到容器中、为省略的选项管理默认值,以及根据顺序将无标志参数映射到特定名称。 该工具包含对选项规范的验证,并能识别无法识别的参数。它在解析阶段通过类型化异常处理错误。
Lightweight option parser for C++.
CLI11 是一个仅包含头文件的 C++ 库,用于解析命令行参数和管理配置文件。它将 shell 输入映射到类型化变量,并支持创建复杂的命令层级。 该库的特色在于支持无限深度的嵌套子命令和前缀匹配。它通过允许从 TOML 或 INI 文件加载应用程序设置来集成配置管理,并支持回退到环境变量。 该项目提供了一套完整的参数解析工具,包括标志和位置参数,以及用于强制执行强制选项和相互依赖关系的验证框架。它还包括带有可自定义格式的自动帮助文档生成功能,以及在特定解析阶段触发自定义逻辑的回调系统。 该库无依赖,专为 C++11 及更高版本设计。
Feature-rich command-line parser for modern C++.
The documentation of the gflags library is available online at https://gflags.github.io/gflags/.
Library for processing command-line flags.
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).
Flexible and header-only argument parser.
Argh! A minimalist argument handler.
Minimalist argument handler for C++.
C++11 port of docopt
C++11 port of the docopt argument parser.
A simple to use, composable, command line parser for C++ 11 and beyond
Composable and simple command-line parser.