Skip to content

Pass a directory as a parameter #3

@Boggin

Description

@Boggin

I have used Consolas to create a console app. It requires a path to a directory to be passed as an argument. This fails as it sees the ':' (colon) as an Operator in the path 'C:\first\second\folder'. I've also tried relative paths.

The problem seems to be in the ArgumentLL2Parser class but I'm unsure about how to prevent the Tokens.Operator.IsMatch from checking inside my path string.

Example:

C:\> MyConsolasApp.exe "C:\path\to\folder\" 
Unhandled Exception: System.Exception: Couldn't parse ':' as value
   at Consolas.Core.ArgumentLL2Parser.GetValue() in C:\Source\github\Consolas\Source\ConsoleApp.Core\ArgumentLL2Parser.cs:line 90

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions