Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Make CLI arg types stronger #1783

Merged
merged 1 commit into from
Nov 24, 2016
Merged

Make CLI arg types stronger #1783

merged 1 commit into from
Nov 24, 2016

Conversation

nchen63
Copy link
Contributor

@nchen63 nchen63 commented Nov 24, 2016

CLI arguments that were actually boolean flags but weren't marked as such would swallow the next argument, even if it was another flag.

For example tslint --type-check --project x would set type-check="--project"

Marking these as boolean with optimist also ensures that the value is either true or false... and not undefined

@nchen63 nchen63 merged commit 8d920c8 into master Nov 24, 2016
@adidahiya adidahiya deleted the arg-types branch November 24, 2016 17:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant