Skip to content

Backslash in argument value escapes quotation mark #240

Open
@wpeti

Description

@wpeti

I hope I'm not using the library in the right way, but i just came across this issue:
I have an option class with a property called "Path", designed to be used as input container of folder or file paths. In case the user is trying to pass a value to this option by using the --Path= argument he/she experiences errors sometime. The cause of this is that they sometime pass on directory paths with a backslash in the end, like so: --Path="c:\test folder". In this unfortunate case the ending quotation mark is not recognized by the parser library and it parses the faulty "c:\test " argument value into my options object.
I'm not an expert of this library and I haven't checked every line of it's code (so far) but would say it's a bug which doesn't have any workaround implemented at the moment.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions