Comparing version 1.0.8 to 1.0.9
@@ -44,6 +44,7 @@ var MAX_LINE_WIDTH = process.stdout.columns || 200; | ||
function parseParams(str, multiple){ | ||
function parseParams(str){ | ||
// params [..<required>] [..[optional]] | ||
// <foo> - require | ||
// [foo] - optional | ||
var tmp; | ||
var left = str.trim(); | ||
@@ -642,3 +643,3 @@ var result = { | ||
usage || '-v, --version', | ||
description || 'Output the version', | ||
description || 'Output version', | ||
function(){ | ||
@@ -674,4 +675,2 @@ console.log(this.version_); | ||
parse: function(args, suggest){ | ||
var suggestions; | ||
if (!args) | ||
@@ -856,3 +855,3 @@ args = process.argv.slice(2); | ||
name: option.usage | ||
.replace(/^(?:-., |)/, function(m, short){ | ||
.replace(/^(?:-., |)/, function(m){ | ||
return m || (hasShortOptions ? ' ' : ''); | ||
@@ -859,0 +858,0 @@ }) |
@@ -6,3 +6,3 @@ { | ||
"author": "Roman Dvornov <rdvornov@gmail.com>", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"keywords": [ | ||
@@ -28,3 +28,3 @@ "cli", | ||
"dependencies": { | ||
"chalk": "1.1.0" | ||
"chalk": "1.1.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -1,2 +0,4 @@ | ||
[![NPM version](https://badge.fury.io/js/clap.png)](http://badge.fury.io/js/clap) [![Build Status](https://travis-ci.org/lahmatiy/clap.png?branch=master)](https://travis-ci.org/lahmatiy/clap) | ||
[![NPM version](https://img.shields.io/npm/v/clap.svg)](https://www.npmjs.com/package/clap) | ||
[![Dependency Status](https://img.shields.io/david/lahmatiy/clap.svg)](https://david-dm.org/lahmatiy/clap) | ||
[![Build Status](https://travis-ci.org/lahmatiy/clap.svg?branch=master)](https://travis-ci.org/lahmatiy/clap) | ||
@@ -3,0 +5,0 @@ # Clap.js |
22821
12
+ Addedchalk@1.1.1(transitive)
- Removedchalk@1.1.0(transitive)
Updatedchalk@1.1.1