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

CommandLine: Support Collection Parameters #47

Open
ZacharyPatten opened this issue Mar 2, 2020 · 1 comment
Open

CommandLine: Support Collection Parameters #47

ZacharyPatten opened this issue Mar 2, 2020 · 1 comment
Labels
Backlog issues that are pending availability of the developers Enhancement issues that suggest potential improvements

Comments

@ZacharyPatten
Copy link
Owner

ZacharyPatten commented Mar 2, 2020

Describe the enhancement
It would be nice if the CommandLine supported collection arguments. We can dynamically detect if the generic type on the CommandLine.Argument<T> is a collection, and if it is handle it differently than singular arguments.

Example Command: myapp.exe ids "1, 2, 3"

Purpose of enhancement
Simplification.

Alternative considerations
Another option is to add a CommandLine.CollectionArgument<T> or create a wrapper for the generic CommandLine.Argument<Collection<T>> that allow configurable parsing techniques.

@ZacharyPatten ZacharyPatten added the Enhancement issues that suggest potential improvements label Mar 2, 2020
@HurricanKai
Copy link

I'd say IEnumerable<T> CommandLine.CollectionArgument<T> would be best. Also, [1, 2, 3] should be considered too

@ZacharyPatten ZacharyPatten added the Backlog issues that are pending availability of the developers label Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog issues that are pending availability of the developers Enhancement issues that suggest potential improvements
Projects
None yet
Development

No branches or pull requests

2 participants