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

Specifying array of delimiter separated values #22

Closed
computerquip-streamlabs opened this issue Aug 1, 2018 · 1 comment
Closed

Specifying array of delimiter separated values #22

computerquip-streamlabs opened this issue Aug 1, 2018 · 1 comment
Assignees
Labels

Comments

@computerquip-streamlabs
Copy link

I don't see a way to specify multiple values at once for a parameter. For instance, I think -p 44,55,66 is a bit more clear than -p 44 -p 55 -p 66 and perhaps a bit easier to parse. Since we know the type of the argument before hand, perhaps this can be specific to integers, doubles, etc. to avoid complicating the parsing of string values as well (where a comma or similar might be a valid part of the value string).

@tomghuang tomghuang self-assigned this Apr 2, 2019
@tomghuang
Copy link
Contributor

We try to keep Argtable3 as simple as possible. What you want to achieve can be implemented by using the string option and parsing/checking the data type by yourself.

I think -p 44 -p 55 -p 66 is acceptable, because when the command-line options become too long or too complicated, the entire command will be embedded in a shell script, a Makefile, or even be generated by another program to simplify the invocation of the command.

Keeping the syntax simple means fewer mistakes and fewer bugs. So we will not implement this feature for now. But thank you for your suggestion.

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

2 participants