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

Repeated arguments are ignored. Only the first one is used #94

Open
ghost opened this issue Jan 29, 2018 · 1 comment
Open

Repeated arguments are ignored. Only the first one is used #94

ghost opened this issue Jan 29, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 29, 2018

I'm invoking my program like this:
program.exe -p param1 -p param2 -p ...

with the following declaration:
IList<string> parameters = new List<string>();
var parser = new FluentCommandLineParser();
parser.Setup<string>('p').Callback(p => parameters.Add(p));
parser.Parse(args);

At the end of the call to Parse() I only have "param1" in my collection

@siywilliams
Copy link
Member

siywilliams commented Jan 29, 2018 via email

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

No branches or pull requests

1 participant