[Python-Dev] Python long command line options

Georg Brandl g.brandl at gmx.net
Thu May 4 15:41:54 CEST 2006


Heiko Wundram wrote:

> Anyway, back on topic, I personally agree with the people who posted to 
> comp.lang.python that --version (and possibly --help, possibly other long 
> parameters too) would be useful additions to Pythons command-line parameters, 
> as it's increasingly getting more common amongst GNU and BSD utilities to 
> support these command-line options to get information about the utility at 
> hand (very popular amongst system administrators) and to use long commandline 
> options to be able to easily see what an option does when encountered in a 
> shell script of some sort.
> 
> And, as this doesn't break any old code (-V isn't going away by the patch), I 
> personally find this to be a very useful change.
> 
> Your thoughts?

Personally, I'm +1, but wonder if it would be enough to support '--help' and
'--version'. We then could cut out the "best guess" code and the code to enable
--opt=value.

Georg



More information about the Python-Dev mailing list