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

Issue parsing arguments with escaped text #165

Open
jurgyy opened this issue Sep 30, 2019 · 0 comments
Open

Issue parsing arguments with escaped text #165

jurgyy opened this issue Sep 30, 2019 · 0 comments

Comments

@jurgyy
Copy link

jurgyy commented Sep 30, 2019

While working on an azure CLI application I noticed some problems parsing (escaped) json and I've traced the problem back to Knack.

In short, with a nonspecific program based on Knack. The following launch params

python .\testknack.py -b '\"a long string\"' --debug

Results in:

Command arguments: ['-b', '{"a', 'long', 'string"}', '--debug']

As you can see, each word in the second argument gets parsed as a separate argument. This doesn't seem right, does it?

I'm using powershell on windows 10 by the way.

Cheers,
Jurgyy

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