Re: [Python-Dev] Python long command line options

2006-05-04 Thread Heiko Wundram
Am Donnerstag 04 Mai 2006 21:25 schrieb Heiko Wundram: > 2) -? and /? are recognized on Windows, as are /help and /version, >because / is just a different longopt-specifier on Windows for the >getopt machinery in _PyOS_GetOpt Just on a side-note: I chose for '/' to be a long-opt identifier

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Heiko Wundram
Am Donnerstag 04 Mai 2006 16:21 schrieb Fredrik Lundh: > I'm +1 on adding --help and --version, +1 on adding -? and /? for windows > only, -0=slightly sceptical if adding a generic long option machinery is > worth it, and -1 on a guessing machinery. I've updated the patch on the SourceForge tracke

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Martin v. Löwis
Fredrik Lundh wrote: > I'm +1 on adding --help and --version, +1 on adding -? and /? for windows > only, > -0=slightly sceptical if adding a generic long option machinery is worth it, > and -1 > on a guessing machinery. I also agree with all these judgments. Regards, Martin

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Guido van Rossum
On 5/4/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > I'm +1 on adding --help and --version, +1 on adding -? and /? for windows > only, > -0=slightly sceptical if adding a generic long option machinery is worth it, > and -1 > on a guessing machinery. I fully support Fredrik's position on this is

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Fredrik Lundh
Heiko Wundram wrote: >> 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. > > The code for the above functionality is about 10-12 lines of C of the whole > patch. > > If th

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Heiko Wundram
Am Donnerstag 04 Mai 2006 15:41 schrieb Georg Brandl: > Heiko Wundram wrote: > > 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. The code for the above f

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Georg Brandl
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 a

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Nick Coghlan
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 am

[Python-Dev] Python long command line options

2006-05-03 Thread Heiko Wundram
Hi all! Martin von Löwis said that it'd be necessary to discuss a patch to Python's ability to parse command-line parameters to the interpreter here, and I thought I might start the ball rolling. The associated patch of mine is: http://sourceforge.net/tracker/index.php?func=detail&aid=1481112&