develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH 5.8.1 @19053] Getopt::Std

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
April 4, 2003 13:32
Subject:
Re: [PATCH 5.8.1 @19053] Getopt::Std
Message ID:
20030404213236.GA6845@math.berkeley.edu
On Fri, Apr 04, 2003 at 12:15:33PM +0200, Johan Vromans wrote:
> > The only purpose of $EXIT_ON_HELP_VERSION is the backward
> > compatibility, so one cannot make an arbitrary script exit early by
> > providing --help option.
> 
> I see. I withdraw this part of the comments.
> But there's a backward compatibility problem anyway: current scripts
> treat --help and --version as illegal options that now suddenly become
> valid with the new versions of Getopt::Std and Getopt::Long.

Well, there is backward compatibility and backward compatibility.
AFAIU, there may be no adverse effect of printing a *different*
message than one emited before.  Hmm, to be extra sure, the
help/version message should be printed on STDERR - unless the script
shows some signs it knows about --help and --version, when the message
can be savely printed on STDOUT.

> > But this is a users responsibility.  If the user chooses
> > --getopt-ui=Tree, then we may assume they know something about
> > Getopt::Tree.
> 
> I don't think average users will use this.

Even if this is a part of some general framework configuration?  E.g.,
suppose GNOME configuration would set PERL_GETOPT_MODULE to an
appropriate value?

Ilya

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About