[Python-ideas] CLI option for isolated mode

Barry Warsaw barry at python.org
Wed Nov 14 22:57:32 CET 2012


On Nov 14, 2012, at 05:57 AM, Eli Bendersky wrote:

>Why does it have to be a single letter? Many tools today demand fully
>spelled out command-line flags for readability, and this also helps avoid
>clashes and cryptic flags no one remembers anyway. So if you want isolate
>mode, what's wrong with "--isolated" ?

% head -1 foo.py
#!/usr/bin/python3 -Es
% ./foo.py
hello world

% head -1 bar.py
#!/usr/bin/python3 -E -s
% ./bar.py
Unknown option: - 
usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

So if you need to put multiple options on your shebang line, long options
won't work.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121114/5fcdacb5/attachment.pgp>


More information about the Python-ideas mailing list