clap - A full featured, fast Command Line Argument Parser for Rust

  •        52

It is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands when writing console/terminal applications. clap is used to parse and validate the string of command line arguments provided by a user at runtime. You provide the list of valid possibilities, and clap handles the rest. This means you focus on your applications functionality, and less on the parsing and validating of arguments.

https://clap.rs
https://github.com/clap-rs/clap

Tags
Implementation
License
Platform

   




Related Projects

kotlin-argparser - Easy to use and concise yet powerful and robust command line argument parsing for Kotlin

  •    Kotlin

This is a library for parsing command-line arguments. It can parse both options and positional arguments. It aims to be easy to use and concise yet powerful and robust. An instance of MyArgs will represent the set of parsed arguments. Each option and positional argument is declared as a property that delegates through a delegate factory method on an instance of ArgParser.

picocli - a mighty tiny command line interface

  •    Java

Picocli is a one-file Java framework for parsing command line arguments and generating polished, easily tailored usage help messages. Java command line parser with both an annotations API and a programmatic API, featuring usage help with ANSI colors, autocomplete and nested subcommands. In a single file, so you can include it in source form. This lets users run picocli-based applications without requiring picocli as an external dependency.

Caporal.js - A full-featured framework for building command line applications (cli) with node.js

  •    Javascript

A full-featured framework for building command line applications (cli) with node.js, including help generation, colored output, verbosity control, custom logger, coercion and casting, typos suggestions, and auto-complete for bash/zsh/fish.Angled brackets (e.g. <item>) indicate required input. Square brackets (e.g. [env]) indicate optional input.

Gengetopt - Command Line Argument Parser in C

  •    C

Gengetopt is a tool to generate C code to parse the command line arguments argc and argv that are part of every C or C++ program. The generated code uses the C library function getopt_long to perform the actual command line parsing.

argh - Rust derive-based argument parsing optimized for code size

  •    Rust

The public API of this library consists primarily of the FromArgs derive and the from_env function, which can be used to produce a top-level FromArgs type from the current program's commandline arguments. Switches, like jump, are optional and will be set to true if provided.


Templatized C++ Command Line Parser

  •    C++

This is a simple templatized C++ library for parsing command line arguments. The library provides a simple, flexible object-oriented interface to the command line that automates argument parsing, USAGE creation and type casting.

Rug.Cmd - Command Line Parser and Console Application Framework

  •    DotNet

Rugland Console Framework is a collection of classes to enable the fast and consistent development of .NET console applications. Parse command line arguments and write your applications usage. If you are developing command line or build process tools in .NET then this maybe th...

Ookii.CommandLine

  •    

Ookii.CommandLine enables comprehensive command line argument parsing for .Net applications. It allows you to easily define required, optional, positional and named arguments, parse the command line, and generate usage information.

structopt - Parse command line argument by defining a struct.

  •    Rust

Parse command line argument by defining a struct. It combines clap with custom derive. Find it on Docs.rs. You can also check the examples and the changelog.

yq - Command-line YAML and XML processor - jq wrapper for YAML/XML documents

  •    Python

Before using yq, you also have to install its dependency, jq. See the jq installation instructions for details and directions specific to your platform. Use the --width/-w argument to pass the line wrap width for string literals. All other command line arguments are forwarded to jq. yq forwards the exit code jq produced, unless there was an error in YAML parsing, in which case the exit code is 1. See the jq manual for more details on jq features and options.

ConsoleFx Commandline Processing Library

  •    CSharp

Command-line application library

Commandant - Type-safe command line argument handling

  •    Swift

Commandant is a Swift framework for parsing command-line arguments, inspired by Argo (which is, in turn, inspired by the Haskell library Aeson).For real-world examples, see the implementation of the Carthage command-line tool.

Java Command Line App Framework

  •    

A Java framework for writing command line utilities by argument parsing, option setting, and pretty-printed help (all by reflection) -- similar to getopt. Fields are set by reflection from the command line and other arguments are sent to the appropriate

argparse - Argument Parser for Modern C++

  •    C++

Simply include argparse.hpp and you're good to go. To start parsing command-line arguments, create an ArgumentParser.

optparse-applicative - Applicative option parser

  •    Haskell

optparse-applicative is a haskell library for parsing options on the command line, providing a powerful applicative interface for composing these options. optparse-applicative takes care of reading and validating the arguments passed to the command line, handling and reporting errors, generating a usage line, a comprehensive help screen, and enabling context-sensitive bash, zsh, and fish completions.

args4j - args4j

  •    Java

args4j : Java command line arguments parser

Commander - Compose beautiful command line interfaces in Swift

  •    Swift

Commander is a small Swift framework allowing you to craft beautiful command line interfaces in a composable way.The closure passed to the command function takes any arguments that conform to ArgumentConvertible, Commander will automatically convert the arguments to these types. If they can't be converted the user will receive a nice error message informing them that their argument doesn't match the expected type.

docopt - Pythonic command line arguments parser, that will make you smile

  •    Python

Pythonic command line arguments parser, that will make you smile

docopt.go - A command-line arguments parser that will make you smile.

  •    Go

An implementation of docopt in the Go programming language.docopt parses command-line arguments based on a help message. Don't write parser code: a good help message already has all the necessary information in it.

cxxopts - Lightweight C++ command line option parser

  •    C++

Note that master is generally a work in progress, and you probably want to use a tagged release version. This is a lightweight C++ option parser library, supporting the standard GNU style syntax for options.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.