Skip to content

Remove duplicate -- options #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

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.

Fixes #251

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.
@ns-bot
Copy link

ns-bot commented Mar 16, 2015

Test PASSed.

@teobugslayer
Copy link
Contributor

👍

rosen-vladimirov added a commit that referenced this pull request Mar 16, 2015
@rosen-vladimirov rosen-vladimirov merged commit d058742 into master Mar 16, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/remove-duplicate-options branch March 16, 2015 10:00
@rosen-vladimirov rosen-vladimirov added this to the 0.10 milestone Mar 16, 2015
@dtopuzov
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OSX] No validation for command options
4 participants