This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, paul.j3, rhettinger, vegarsti
Date 2020-08-20.13:44:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597931064.16.0.0258289650981.issue41600@roundup.psfhosted.org>
In-reply-to
Content
This is all working as designed. We do not want to modify argparse to split parameters.

You probably want to split the input with shlex.split(). See https://stackoverflow.com/questions/44945815/how-to-split-a-string-into-command-line-arguments-like-the-shell-in-python

You shouldn't need to mutate sys.argv. You can break the input up into multiple strings with shlex.split() (or whatever you decide to use) and pass those to ArgumentParser.parse_args().
History
Date User Action Args
2020-08-20 13:44:24eric.smithsetrecipients: + eric.smith, rhettinger, paul.j3, vegarsti
2020-08-20 13:44:24eric.smithsetmessageid: <1597931064.16.0.0258289650981.issue41600@roundup.psfhosted.org>
2020-08-20 13:44:24eric.smithlinkissue41600 messages
2020-08-20 13:44:24eric.smithcreate