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

Supported Syntax: space char is not supported #38

Open
gitizenme opened this issue Jun 19, 2015 · 2 comments
Open

Supported Syntax: space char is not supported #38

gitizenme opened this issue Jun 19, 2015 · 2 comments

Comments

@gitizenme
Copy link

Based on the docs in the README the space character should work for options in the format:

foo.exe -n 123

However only : and = work, using a space results in a parse error.

From the docs:

Supported Syntax

[-|--|/][switch_name][=|:| ][value]
@siywilliams
Copy link
Member

Hi @gitizenme

Yes the space character is absolutely supported, not sure what's going on there.

Can you tell me what version you're using and perhaps the exact arguments you're passing in?

@gitizenme
Copy link
Author

Latest stable release from NuGet: 1.4.2

Here's a bit more info. If the arg is passed in on the command line then space is works. If I pass the arg in via System.Console.In stream then the parse fails.

Example:

$ ./Devices.Console.exe -l Info
Devices.Console Log - BEGIN
Log level set to: Info
l Info
ERROR|Devices.Console.CommandLineProcessor|Command processing error: Option '-l Info' parse error: could not parse '' to 'Devices.Console.CommandLineProcessor+ConsoleLogLevel'.
l=Info
Log level set to: Info

Argument -l info passed into the console app works
Typing l info into the console session followed by newline fails
Typing l=Info into the console works

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

No branches or pull requests

2 participants