Displaying 1 to 19 from 19 results

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.

slop - Simple Lightweight Option Parsing

  •    Ruby

Slop is a simple option parser with an easy to remember syntax and friendly API. Version 4 of Slop is aimed at Ruby 2.0 or later. Please use Version 3 for Ruby 1.9 support.

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.

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.

SwiftCLI - A powerful framework that can be used to develop a CLI in Swift

  •    Swift

A powerful framework that can be used to develop a CLI, from the simplest to the most complex, in Swift. See migration information.

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.

flag - Flag is a simple but powerful command line option parsing library for Go support infinite level subcommand

  •    Go

Flag is a simple but powerful commandline flag parsing library for Go.FlagMeta Structure can implement the Metadata interface to update flag metadata instead write in structure tag, it's designed for long messages.

docopt.nim - Command line arguments parser that will make you smile (port of docopt to Nim)

  •    Nim

This is a port of docopt to Nim. Visit docopt.org for more information.The option parser is generated based on the docstring above that is passed to docopt function. docopt parses the usage pattern ("Usage: ...") and option descriptions (lines starting with dash "-") and ensures that the program invocation matches the usage pattern; it parses options, arguments and commands based on that. The basic idea is that a good help message has all necessary information in it to make a parser.

argumentum - No-bullshit option parser for node.js.

  •    Javascript

Argumentum is a no-bullshit option parser for node. It doesn't have complicated chainable APIs so it's much more easier to use.This project is based on nomnom by Heather Arthur.

yuck - Your Umbrella Command Kit, a bog-standard command line option parser for C with all the knickknackery and whatnots

  •    C

And getting started is as easy as munching cake -- let yuck do the actual baking for you: Just feed it the --help output you'd like to see and yuck will happily try and generate a parser from it. For tarball builds omit the autoreconf -fi line.


  •    Ruby

Samovar is a modern framework for building command-line tools and applications. It provides a declarative class-based DSL for building command-line parsers that include automatic documentation generation. It helps you keep your functionality clean and isolated where possible. I've been using Trollop and while it's not bad, it's hard to use for sub-commands in a way that generates nice documentation. It also has pretty limited support for complex command lines (e.g. nested commands, splits, matching tokens, etc). Samovar is a high level bridge between the command line and your code: it generates decent documentation, maps nicely between the command line syntax and your functions, and supports sub-commands using classes which are easy to compose.

clikt - Intuitive command line interface parsing for Kotlin

  •    Kotlin

Clikt (pronounced "clicked") is a Kotlin library that makes writing command line interfaces simple and intuitive. It the "Command Line Interface for Kotlin". Inspired by Python's Click, it is designed to make the process of writing command line tools efortless while supporting a wide variety of use cases and allowing advanced customization when needed.

command-line-args - A mature, feature-complete library to parse command-line options.

  •    Javascript

A mature, feature-complete library to parse command-line options. To access the values, first create a list of option definitions describing the options your application accepts. The type property is a setter function (the value supplied is passed through this), giving you full control over the value received.

command-line-commands - Add a git-like command interface to your app.

  •    Javascript

A lightweight module to help build a git-like command interface for your app. Its job is to extract the command (the first argument, unless it's an option), check it's valid and either return it or throw. From there, you can parse the remaining args using your preferred option parser (e.g. command-line-args, minimist etc.).

CmdLine2 - Command line argument parser (C++14)

  •    C++

The following example shows how to use the library to parse command line arguments from the argv array. More detailed information can be found in the API-Reference.

NDesk.Options - A (slightly) modified fork of NDesk.Options.

  •    CSharp

NDesk.Options is a program option parser for C#.

optionparser - Advanced command line arguments processor

  •    Go

Ruby (OptionParser) like command line arguments processor. After calling op := optionparser.NewOptionParser() you can set op.Banner to set the first line of the help output. The default value is Usage: [parameter] command.