worried-salesclerk-37834
08/11/2021, 5:48 PM./pants run projects/executable:pex_binary -- --arg1 "many words separated"
I'm using argparse, and it blows up because it's not expecting an argument "words separated". Looking at sys.argv, they're all split up.
This doesn't happen when I invoke the pex file directly. argparse's destination "arg1" has a value of "many words separated". Workaround when using pants is to escape all the spaces.hundreds-father-404
08/11/2021, 5:50 PM'
instead of "
?witty-crayon-22786
08/11/2021, 5:52 PMwitty-crayon-22786
08/11/2021, 5:53 PMworried-salesclerk-37834
08/11/2021, 5:58 PMworried-salesclerk-37834
08/11/2021, 5:58 PMworried-salesclerk-37834
08/11/2021, 5:59 PMwitty-crayon-22786
08/11/2021, 6:04 PMworried-salesclerk-37834
08/11/2021, 6:14 PMwitty-crayon-22786
08/11/2021, 10:30 PMwitty-crayon-22786
08/17/2021, 4:48 PM2.6.1rc1
and 2.5.2rc3
went out yesterday with this fix! https://pantsbuild.slack.com/archives/C18RRR4JK/p1629156618005800hundreds-father-404
08/17/2021, 4:49 PMworried-salesclerk-37834
08/17/2021, 4:59 PM