Comparing version 1.0.0-alpha to 1.0.0-alpha.2
@@ -95,6 +95,6 @@ | ||
// --no-flag - invert value if flag is boolean | ||
.replace(/^--(no-)?([a-zA-Z][a-zA-Z0-9\-\_]+)\s*/, function(m, no, name){ | ||
self.name = name; | ||
self.long = (no || '') + name; | ||
self.defValue = !!no; | ||
.replace(/^--([a-zA-Z][a-zA-Z0-9\-\_]+)\s*/, function(m, name){ | ||
self.long = name; | ||
self.name = name.replace(/(^|-)no-/, '$1'); | ||
self.defValue = self.name != self.long; | ||
@@ -101,0 +101,0 @@ return ''; |
@@ -6,3 +6,3 @@ { | ||
"author": "Roman Dvornov <rdvornov@gmail.com>", | ||
"version": "1.0.0-alpha", | ||
"version": "1.0.0-alpha.2", | ||
"keywords": ["cli", "command", "option", "argument", "completion"], | ||
@@ -9,0 +9,0 @@ "homepage": "https://github.com/lahmatiy/clap", |
@@ -0,1 +1,3 @@ | ||
[![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) | ||
# Clap.js | ||
@@ -2,0 +4,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18784
10