该库是一个用于 C# 和 F# 的 .NET 命令行解析器,实现了 POSIX getopt 约定,将 Shell 参数映射为强类型对象。它为构建处理 Unix 风格标志和选项的控制台应用程序提供了一个框架。
The main features of commandlineparser/commandline are: Command Line Argument Parsers, Command Line Argument Parsing, Argument Grouping, CLI Command Dispatchers, Nested Command Structures, CLI Command Routers, CLI Routers, Command Line Interface Routing.
Open-source alternatives to commandlineparser/commandline include: cliutils/cli11 — CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell… remkop/picocli — picocli is a command line interface development framework and argument parser for JVM-based applications. It maps… docopt/docopt — Docopt is a command-line argument parser and declarative interface tool that converts raw terminal input into a… yargs/yargs — yargs is a command-line interface framework and argument parser for Node.js. It translates raw command-line strings… spectreconsole/spectre.console — Spectre.Console is a .NET framework designed for building structured, feature-rich command-line applications. It… rails/thor — Thor is a Ruby toolkit for building command line interfaces and task runners. It maps user flags and parameters to…
CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell input to typed variables and supports the creation of complex command hierarchies. The library is distinguished by its support for nested subcommands with infinite depth and prefix matching. It integrates configuration management by allowing application settings to be loaded from TOML or INI files, with the ability to fall back to environment variables. The project provides a comprehensive set of tools for argument parsing, including flags and positional arguments, alongside
picocli is a command line interface development framework and argument parser for JVM-based applications. It maps command line options and positional parameters to strongly typed Java methods and fields using a declarative, annotation-based model. The framework provides specific support for native image compilation, producing the reflection and resource configuration files necessary to build standalone binaries with reduced startup overhead. It further distinguishes itself with a dedicated system for generating shell autocompletion scripts and an ANSI terminal stylizer for applying colors and
Docopt is a command-line argument parser and declarative interface tool that converts raw terminal input into a structured data map. It derives its parsing logic and requirements directly from a standardized POSIX-style help message, using the documentation as the formal specification for the interface. The system implements a POSIX usage pattern parser to translate human-readable help strings into rules for extracting options and positional arguments. It automatically generates help screens and version information based on the internal usage patterns defined by the user. The tool ensures a
yargs is a command-line interface framework and argument parser for Node.js. It translates raw command-line strings into structured JavaScript objects, providing a toolkit for building terminal applications with nested sub-commands, dedicated handlers, and a structured user interface. The framework distinguishes itself through automated help text generation, which constructs formatted usage menus and instructions based on registered metadata. It also provides shell completion generation for Bash and Zsh and uses string-distance algorithms to offer typo correction suggestions when invalid inpu