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

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

Thread Previous | Thread Next
April 5, 2003 02:01
Re: [PATCH 5.8.1 @19053] Getopt::Std
Message ID:
[Quoting Ilya Zakharevich, on April 4 2003, 13:32, in "Re: [PATCH 5.8.1 @19"]
> 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

Conventions dictate that they are written to STDOUT.

But most important: the program must exit after the message is
written, while in your proposal it only exits after source
modification (the setting of $main::EXIT_ON_HELP_VERSION).

> 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?

Exactly, and an environment variable would be a better way to select
the handler. Using a command line option to select a command line
option processor is confusing and error prone. 

-- Johan

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About