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

Represent list-type options as an array #61

Open
agis opened this issue Dec 6, 2016 · 0 comments
Open

Represent list-type options as an array #61

agis opened this issue Dec 6, 2016 · 0 comments
Labels

Comments

@agis
Copy link
Contributor

agis commented Dec 6, 2016

Cog supports a list-type option. Right now, if a user does:

!foo --flavor=sour --flavor=sweet

This will result in #opts returning {"flavor_0" => "sour", "flavor_1" => "sweet".

Ideally we should return {"flavor" => ["sour, "sweet"]}.

@agis agis added the feature label Dec 6, 2016
@agis agis changed the title Add helper for conveniently accessing grouped "list" options Represent list-type options as an array Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant