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

Parsing command line with CommandLineService is not working #182

Closed
GeertvanHorrik opened this issue Oct 9, 2020 · 2 comments
Closed

Parsing command line with CommandLineService is not working #182

GeertvanHorrik opened this issue Oct 9, 2020 · 2 comments

Comments

@GeertvanHorrik
Copy link
Member

Example command line:

c:\Source\MyApp\output\MyApp.exe -argument "1 2 3"

This removes the quotes of the command line arguments:

commandLineParser.Parse(commandLineService.GetCommandLine(), commandLineContext);

Workaround:

var commandLineArguments = System.Environment.GetCommandLineArgs().Skip(1).ToArray();
commandLineParser.Parse(commandLineArguments, commandLineContext);
@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
@stale stale bot closed this as completed Jan 7, 2021
@GeertvanHorrik GeertvanHorrik reopened this Jan 7, 2021
@GeertvanHorrik
Copy link
Member Author

We should obsolete this library in favor of System.CommandLine.

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