Skip to content
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

Add options.string #35

Closed
jorgebucaran opened this issue Aug 15, 2018 · 0 comments
Closed

Add options.string #35

jorgebucaran opened this issue Aug 15, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jorgebucaran
Copy link
Owner

jorgebucaran commented Aug 15, 2018

Add a new string option to string type coerce flag/options.

getopts(["-vcv"], { string: ["c"] }) //=> { v: true, c: "v" }

For comparison, here is the default behavior without { string: ["c"] }

getopts(["-vcv"]) //=> { v: [true, true], c: true }

Implemented properly this should only slow us down ever so slightly.

@jorgebucaran jorgebucaran added the enhancement New feature or request label Aug 15, 2018
@jorgebucaran jorgebucaran self-assigned this Aug 15, 2018
@jorgebucaran jorgebucaran added this to the 2.2.0 milestone Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant