Skip to content

support for CliPositionalArg[list[Path]] under windows #647

Open
@mo22

Description

@mo22

Hi,

thank you for providing this wonderful library!

I'm using a ... files: CliPositionalArg[list[Path]] in an arguments class, parsed via CliApp.run, and on windows paths .\something\something.exe will hit the json decoder which stumbles over the backslash of the windows path.

currently I'm working around this by escaping any backslashes in sys.argv before passing it to CliApp.run, which does affect using actual json in arguments, which I don't need, but I wonder if there is a better way to solve this.

To me it seems that multiple command line arguments are converted to json before in turn decoded as json, so maybe the encoding to json just needs escaping?

Thank you very much

Moritz

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions