New submission from Jack Orenstein :
I am using shlex.quote to pass filenames to a shell command, e.g. ls. The
problem is that glob patterns, when quoted, no longer operate as glob patterns.
So, for example, executing this:
ls 'var/log/syslog*'
results in this output:
Jack Orenstein added the comment:
Yes! I didn't know about that method, thank you.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.
New submission from Jack Orenstein :
If parse_args fails, SystemExit is raised, carrying an exit code of 2, and the
help message is printed. For an embedded usage of argparse, this behavior is
undesirable.
I am writing an interactive console application, using argparse to parse input.
When