0.0.7 • Published 8 years ago

parse-argv v0.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

parseArgv

Parse and structure command line argument options.

Install

$ npm install --save parse-argv

Usage

$ node examples/example.js -a -b22 -xyz --greetings=hello --name=bob -z meow -v boom -s
var parseArgv = require("parse-argv");

parseArgv(process.argv.slice(2))
/*
{ a: true,
  b: 22,
  x: true,
  y: true,
  z: 'meow',
  greetings: 'hello',
  name: 'bob',
  v: 'boom',
  s: true }
*/