minimist - parse argument options

  •        11

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.

https://github.com/substack/minimist

Tags
Implementation
License
Platform

   




Related Projects

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.

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.

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.

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.

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.


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.

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.

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.

redux-optimist - Optimistically apply actions that can be later commited or reverted.

  •    Javascript

Optimistically apply actions that can be later commited or reverted. As long as your top-level reducer returns a plain object, you can use optimist. You don't have to use Redux.combineReducers.

GNU Getopt .NET

  •    DotNet

This is a Getopt C#.NET port based on Aaron M. Renn's Java port of Getopt.

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.

Free Getopt

  •    C

A getopt library compatible with GNU-getopt, but distributed with a BSD license, and also supports DOS-style commandline parsing.

JOpt Simple

  •    Java

A simple, test-driven command line parser for Java programs, supporting POSIX getopt() and GNU getopt_long().

JCommando

  •    Java

A Java command-line option parser generator, providing function similar to GNU Getopt, but much richer.

Getopt Sample

  •    C

The sample code shows how to use the getopt() function to parse the command-line options in a C or C++ program. Options may have no argument at all, or have one or more arguments.

expressworks - Learn Express

  •    Javascript

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js—workshop to teach you basics of Express.js.This workshop is based on workshopper and inspired by stream-adventure by @substack and @maxogden.

substack-flavored-webapp - Here are some tiny backend node modules I like to glue together to build webapps

  •    Javascript

Here are some tiny backend node modules I like to glue together to build webapps.This example only includes the backend components.

node-bignum - Big integers for Node.js using OpenSSL

  •    Javascript

Arbitrary precision integral arithmetic for Node.js using OpenSSL. This library is based on node-bigint by substack, but instead of using libgmp, it uses the builtin bignum functionality provided by OpenSSL. The advantage is that OpenSSL is already part of Node.js, so this library does not add any external dependency whatsoever.

suid wrapper

  •    C

wrapper for executing processes under different uid, depending on calling uid, gid, cmdline (also argv[0]) (keywords: uid switch, su, switch user, superuser, wrapper, alternate user id)