commander - Commander option parser ported to C - simple API, auto-generated --help

  •        5

Commander option parser ported to C. cmd.data is a void * so pass along a struct to the callbacks if you want.

https://github.com/clibs/commander

Tags
Implementation
License
Platform

   




Related Projects

sade - Smooth (CLI) Operator 🎶

  •    Javascript

Define your global/program-wide version, options, description, and/or examples first. Once you define a Command, you can't access the global-scope again. Define all commands & options in the order that you want them to appear. Sade will not mutate or sort your CLI for you. Global options print before local options.

commander.js - node.js command-line interfaces made easy

  •    Javascript

Options with commander are defined with the .option() method, also serving as documentation for the options. The example below parses args and options from process.argv, leaving remaining args as the program.args array which were not consumed by options.Short flags may be passed as a single arg, for example -abc is equivalent to -a -b -c. Multi-word options such as "--template-engine" are camel-cased, becoming program.templateEngine etc.

getopts - Node.js CLI arguments parser

  •    Javascript

Getopts is a Node.js CLI arguments parser. It's designed closely following the Utility Syntax Guidelines so that your programs behave like typical UNIX utilities effortlessly and without sacrificing developer experience. Use getopts to parse the command-line arguments passed to your program.

args - Toolkit for building command line interfaces

  •    Javascript

This package makes creating command line interfaces a breeze. Register a new option for the binary in which it's being called.

argh - Argh! A minimalist argument handler.

  •    C++

If you're writing a highly-sophisticated command line tool, then Boost.Program_options and its kind might give you many advanced options. However, if you need to get up and running quickly, effectively and with minimal fuss, give the single header-file argh a try.


minimist - parse argument options

  •    Javascript

This module is the guts of optimist's argument parser without all the fanciful decoration.Return an argument object argv populated with the array arguments from args.

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.

nomnom - [UNMAINTAINED] Option parser for node with generated usage and commands

  •    Javascript

nomnom is an option parser for node. It noms your args and gives them back to you in a hash. Nomnom supports args like -d, --debug, --no-debug, --file=test.txt, --file test.txt, -f test.txt, -xvf, and positionals. Positionals are arguments that don't fit the -a or --atomic format and aren't attached to an option.

commando - An Elegant CLI Library for PHP

  •    PHP

Commando is a PHP command line interface library that beautifies and simplifies writing PHP scripts intended for command line use. PHP's $argv magic variable and global $_SERVER['argv'] make me cringe, getopt isn't all that much better, and most other PHP CLI libraries are far too OOP bloated. Commando gets down to business without a ton of overhead, removes the common boilerplate stuff when it comes to handling CLI input, all while providing a clean and readable interface.

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.

Cobra - A Commander for modern Go CLI interactions

  •    Go

Cobra is both a library for creating powerful modern CLI applications as well as a program to generate applications and command files. Cobra is a library providing a simple interface to create powerful modern CLI interfaces similar to git & go tools.

nash - Craft command-line masterpieces in Node.js

  •    Javascript

Run the cli app with the given arguments. Normally you'd pass in process.argv. The callback can be used to execute more code after everything has completed. Create a command with the given name(s). Supports a single name, and array of names, or multiple names separated by commas as arguments to the command method. Returns an instance of Command.

CLI11 - CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface

  •    C++

CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface. CLI11 provides all the features you expect in a powerful command line parser, with a beautiful, minimal syntax and no dependencies beyond C++11. It is header only, and comes in a single file form for easy inclusion in projects. It is easy to use for small projects, but powerful enough for complex command line projects, and can be customized for frameworks. It is tested on Travis and AppVeyor, and is being included in the GooFit GPU fitting framework. It was inspired by plumbum.cli for Python. CLI11 has a user friendly introduction in this README, a more in-depth tutorial GitBook, as well as API documentation generated by Travis. See the changelog or GitHub Releases for details for current and past releases. Also see the Version 1.0 post, Version 1.3 post, or Version 1.6 post for more information.

yargs - yargs the modern, pirate-themed successor to optimist.

  •    Javascript

Having problems? want to contribute? join our community slack.Yargs be a node.js library fer hearties tryin' ter parse optstrings.

node-optimist - Light-weight option parsing for node.js

  •    Javascript

I don't want to maintain this module anymore since I just use minimist, the argument parsing engine, directly instead nowadays.See yargs for the modern, pirate-themed successor to optimist.

JCommander - Command line parsing framework for Java

  •    Java

JCommander is a very small Java framework that makes it trivial to parse command line parameters. You annotate fields with descriptions of your options.

vorpal - Node's framework for interactive CLIs

  •    Javascript

Conquer the command-line.Vorpal is Node's first framework for building interactive CLI applications. With a simple and powerful API, Vorpal opens the door to a new breed of rich, immersive CLI environments like cash and wat.

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.

go-flags - go command line option parser

  •    Go

Package flags provides an extensive command line option parser. The flags package is similar in functionality to the go builtin flag package but provides more options and uses reflection to provide a convenient and succinct way of specifying command line options. This specifies one option with a short name -v and a long name --verbose. When either -v or --verbose is found on the command line, a 'true' value will be appended to the Verbose field. e.g. when specifying -vvv, the resulting value of Verbose will be {[true, true, true]}.