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

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

Thread Previous | Thread Next
From:
jvromans
Date:
April 5, 2003 02:01
Subject:
Re: [PATCH 5.8.1 @19053] Getopt::Std
Message ID:
16014.43372.141794.274483@phoenix.squirrel.nl
[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


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