Comparing version 0.5.13 to 0.5.14
@@ -12,2 +12,3 @@ "use strict"; | ||
const _1 = require("."); | ||
const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
/** | ||
@@ -44,3 +45,3 @@ * Command context. | ||
*/ | ||
function command({ brief, description, skippedArgs: skippedArgsEnabled = false } = {}) { | ||
function command({ brief, description, skippedArgs: skippedArgsEnabled = false, } = {}) { | ||
return (target) => { | ||
@@ -123,5 +124,7 @@ target.brief = brief; | ||
...getOptionDefinitions(Object.getPrototypeOf(OptionConstructor)), | ||
...(OptionConstructor.definitions || []), | ||
...(hasOwnProperty.call(OptionConstructor, 'definitions') | ||
? OptionConstructor.definitions | ||
: []), | ||
]; | ||
} | ||
//# sourceMappingURL=command.js.map |
@@ -215,3 +215,3 @@ "use strict"; | ||
...parameterUsageTexts, | ||
...TargetCommand.skippedArgsEnabled ? ['-- ...'] : [] | ||
...(TargetCommand.skippedArgsEnabled ? ['-- ...'] : []), | ||
].join(' '); | ||
@@ -218,0 +218,0 @@ this.texts.push(`\ |
{ | ||
"name": "clime", | ||
"version": "0.5.13", | ||
"version": "0.5.14", | ||
"description": "The command-line interface framework for TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "bld/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139269
2031