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

passing string with commas as parameter #57

Closed
nikolaevn opened this issue Nov 8, 2018 · 2 comments
Closed

passing string with commas as parameter #57

nikolaevn opened this issue Nov 8, 2018 · 2 comments

Comments

@nikolaevn
Copy link

Is there a way to pass a string like 'a,b,c' as cli parameter that would be interpreped as string, not as list?
According to yasha.py it will be converted to list anyway

...
 if isinstance(val, str) and ',' in val:
            # Convert foo,bar,baz to list ['foo', 'bar', 'baz']
            val = val.split(',')
variables[opt] = val
...
@kblomqvist
Copy link
Owner

Hmm.. can you try --mystring '"a,b,c"'

@nikolaevn
Copy link
Author

nikolaevn commented Nov 8, 2018

Hmm.. can you try --mystring '"a,b,c"'

Have tried it - without success.
I use yasha version 4.3 with python 3.7.1

Maybe it should be parameter like --dont_split_strings to suppress converting param to list?

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

2 participants