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

Support duplicate flags #1

Open
vjpr opened this issue Oct 2, 2016 · 0 comments
Open

Support duplicate flags #1

vjpr opened this issue Oct 2, 2016 · 0 comments

Comments

@vjpr
Copy link

vjpr commented Oct 2, 2016

CLI's like Docker and rsync support using a flag multiple times.

Not sure the best syntax.

This is concise, but a bit confusing:

const args = {
  volume: [['foo', 'bar']]
}

Otherwise you could use an object with a "type" setting.

const args = {
  volume: {separate: true, values: ['foo', 'bar']}
}

separate, multi...something like that.


I'm thinking though that perhaps it might be neccessary to support ordering. Which in that case would mean that an array would be preferred over an object.

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