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

Consider allowing arrays to be bound to list options. #1097

Closed
imbriaco opened this issue Oct 26, 2016 · 0 comments
Closed

Consider allowing arrays to be bound to list options. #1097

imbriaco opened this issue Oct 26, 2016 · 0 comments
Assignees
Milestone

Comments

@imbriaco
Copy link
Member

Command options can be of type list which means that they can either be specified multiple times or can be passed a comma separated string in order to set more than one value for the option.

In practice that means we write commands like the following, which are equivalent:

imbriaco:optdebug -l foo1 -l foo2 -l foo3 ...
imbriaco:optdebug -l foo1,foo2,foo3 ...

It would be nice if you could also directly bind an array, e.g.

seed '{ "foo": [ "foo1", "foo2", "foo3" ]}' | imbriaco:optdebug -l $foo env

Attempting this currently results in this:

slack - operable 2016-10-26 12-04-40

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

No branches or pull requests

2 participants