Skip to content

Commit 4ff0dd7

Browse files
Add dashedOptions for each command
Each command can use specific dashed options (`-- avd <name>` for example is valid for one command, but not for other). Add dashedOptions parameter to ICommand interface and make sure to use it for validation when it exists. In case there's no dashedOptions paramter, use the common options. In order to validate the options, delete yargs from require and require it again as yargs.options(this.options).argv is caching the results and calling it more than once with different options is giving strange results. Update yargs to 3.12.0
1 parent f1e3cad commit 4ff0dd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"xmldom": "0.1.19",
7373
"xmlhttprequest": "https://github.com/telerik/node-XMLHttpRequest/tarball/master",
7474
"xmlmerge-js": "0.2.4",
75-
"yargs": "1.2.2"
75+
"yargs": "3.12.0"
7676
},
7777
"analyze": true,
7878
"devDependencies": {

0 commit comments

Comments
 (0)