Comparing version 1.0.4 to 1.0.5
@@ -237,3 +237,3 @@ var MAX_LINE_WIDTH = process.stdout.columns || 200; | ||
if (typeof option.defValue != 'undefined') | ||
command.setOption(option.camelName, option.defValue); | ||
command.setOption(option.camelName, option.defValue, true); | ||
@@ -554,3 +554,3 @@ // add to suggestions | ||
if (!hasOwnProperty.call(this.defaults_, name)) | ||
if (isDefault && !hasOwnProperty.call(this.defaults_, name)) | ||
this.defaults_[name] = this.values[name]; | ||
@@ -557,0 +557,0 @@ }, |
@@ -6,3 +6,3 @@ { | ||
"author": "Roman Dvornov <rdvornov@gmail.com>", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"keywords": ["cli", "command", "option", "argument", "completion"], | ||
@@ -9,0 +9,0 @@ "homepage": "https://github.com/lahmatiy/clap", |
21918