command-line-interface
Advanced tools
Comparing version 3.6.11 to 3.6.12
@@ -25,8 +25,5 @@ "use strict"; | ||
if (defaultOption) { | ||
if (defaultOption.isRequired) { | ||
synopsis += ` ${optionToString_1.optionToString({ option: defaultOption })}`; | ||
} | ||
else { | ||
synopsis += ` [${optionToString_1.optionToString({ option: defaultOption })}]`; | ||
} | ||
synopsis += defaultOption.isRequired ? | ||
` ${optionToString_1.optionToString({ option: defaultOption })}` : | ||
` [${optionToString_1.optionToString({ option: defaultOption })}]`; | ||
} | ||
@@ -33,0 +30,0 @@ return synopsis; |
@@ -0,1 +1,8 @@ | ||
## [3.6.12](https://github.com/thenativeweb/command-line-interface/compare/3.6.11...3.6.12) (2020-11-20) | ||
### Bug Fixes | ||
* Update README.md with working multiple:on parameter example. ([#200](https://github.com/thenativeweb/command-line-interface/issues/200)) ([cfa255f](https://github.com/thenativeweb/command-line-interface/commit/cfa255f2be4a572739f345f69ef3839c610efc02)) | ||
## [3.6.11](https://github.com/thenativeweb/command-line-interface/compare/3.6.10...3.6.11) (2020-11-09) | ||
@@ -2,0 +9,0 @@ |
@@ -37,7 +37,5 @@ import { Command } from '../elements/Command'; | ||
if (defaultOption) { | ||
if (defaultOption.isRequired) { | ||
synopsis += ` ${optionToString({ option: defaultOption })}`; | ||
} else { | ||
synopsis += ` [${optionToString({ option: defaultOption })}]`; | ||
} | ||
synopsis += defaultOption.isRequired ? | ||
` ${optionToString({ option: defaultOption })}` : | ||
` [${optionToString({ option: defaultOption })}]`; | ||
} | ||
@@ -44,0 +42,0 @@ |
{ | ||
"name": "command-line-interface", | ||
"version": "3.6.11", | ||
"version": "3.6.12", | ||
"description": "command-line-interface is a foundation for CLI applications.", | ||
@@ -32,5 +32,5 @@ "contributors": [ | ||
"assertthat": "5.2.1", | ||
"record-stdstreams": "3.0.26", | ||
"roboter": "11.4.2", | ||
"semantic-release-configuration": "1.0.25", | ||
"record-stdstreams": "3.0.28", | ||
"roboter": "11.5.11", | ||
"semantic-release-configuration": "1.0.26", | ||
"sinon": "9.2.1" | ||
@@ -37,0 +37,0 @@ }, |
@@ -124,3 +124,3 @@ # command-line-interface | ||
```shell | ||
$ node.js app.js --name Jane,Jenny | ||
$ node.js app.js --name Jane Jenny | ||
``` | ||
@@ -127,0 +127,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
71819
1318