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

How to parse into an array? #156

Closed
brandonh-msft opened this issue Nov 22, 2022 · 2 comments
Closed

How to parse into an array? #156

brandonh-msft opened this issue Nov 22, 2022 · 2 comments
Labels

Comments

@brandonh-msft
Copy link

I thought by defining the arg as List<T> I would be able to do something like -arg item1 -arg item2 but I'm met with an error that -arg has already been specified. Is there an option/metadata I'm missing?

@adamabdelhamed
Copy link
Owner

Using a list is supported, but it doesn't let you repeat the argument as you've tried. You would have to do this:

-arg "item1,item2,item3"

@brandonh-msft
Copy link
Author

what if my values are strings and contain ,?

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