Skip to content

Commit 5b70312

Browse files
Remove duplicate -- options
Yargs adds -- options to yargs.argv in two ways (--profile-dir is added as profile-dir and profileDir). In order to workaround this behavior, we had to add all dashed options in both ways to our known options. Fix our validation logic, so we'll have to add only profile-dir. Remove check for client name when validating -- options. This way options will be validated no matter if CLIENT_NAME( tns) or CLIENT_NAME_ALIAS (nativescript) is used on command line.
1 parent 7289922 commit 5b70312

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/common

lib/options.ts

-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ import hostInfo = require("./common/host-info");
99
var knownOpts:any = {
1010
"frameworkPath": String,
1111
"copy-from": String,
12-
"copyFrom": String,
1312
"link-to": String,
14-
"linkTo": String,
1513
"release": Boolean,
1614
"emulator": Boolean,
1715
"symlink": Boolean,
18-
"forDevice": Boolean,
1916
"for-device": Boolean,
2017
"keyStorePath": String,
2118
"keyStorePassword": String,

0 commit comments

Comments
 (0)