Closed EmilienM closed 5 years ago
@baude PTAL
Less complicated reproducer, courtesy of @mheon on IRC:
$ podman run --rm --label 'true="false"' alpine true
Error: invalid argument "true=\"false\"" for "-l, --label" flag: parse error on line 1, column 5: bare " in non-quoted-field
do you need to specify --label multiple times, or do you expect people to use it as a CSV. If 'as a CSV' that's what you have and 'true="false"' isn't a valid CSV. If you want people to have to use it multiple times I'm guessing you want a StringArray, instead of a StringSlice.
do you need to specify --label multiple times, or do you expect people to use it as a CSV. If 'as a CSV' that's what you have and 'true="false"' isn't a valid CSV. If you want people to have to use it multiple times I'm guessing you want a StringArray, instead of a StringSlice.
We use --label multiple times.
Fixed in master.
Does this fix also need to be applied to --env? Slight modification of your reproduction above:
$ podman run --rm --env var='true=\"false\"' alpine true
Error: invalid argument "var=true=\\\"false\\\"" for "-e, --env" flag: parse error on line 1, column 10: bare " in non-quoted-field
--env
as well
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description Flag parsing error in non-quoted-field, regression found in 1.1.2.
Steps to reproduce the issue:
Command used to deploy:
Describe the results you received:
Describe the results you expected: Deployment worked in podman 1.0.0.
Output of
podman version
:Output of
podman info --debug
: