Steven D'Aprano added the comment:

> This means that a user who wishes to use '--' in some other way is out of 
> luck. 

I think that's a feature, not a limitation.

Command line arguments should use broadly consistent conventions. I don't want 
one program to use '--' for "end of options" and another program to use it for 
"something else".

Suppose you want to use '--' for "foo", and '%%' (say) as the end of options 
terminator. Whatever foo is. Okay, just swap them -- keep the usual convention 
where '--' is the options terminator, and use '%%' for foo. That way your users 
won't be surprised and confused by your application working differently from 
the great bulk of commandline applications. (Users never read the manual.)

But maybe I'll change my mind if you can show that there's already a very 
common, and useful, alternative convention of '--' for foo, for some definition 
of foo.

----------
nosy: +steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to