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

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

Thread Previous | Thread Next
April 7, 2003 03:47
Re: [PATCH 5.8.1 @19053] Getopt::Std
Message ID:
[Quoting Ilya Zakharevich, on April 6 2003, 12:37, in "Re: [PATCH 5.8.1 @19"]
> It should be enough to do one-place modification
>   $Getopt::Std::HELP_VERSION_AWARE = 1;
> to change the behaviour to be standard-conforming.

I'm losing you. The initial idea was to transparently provide new
functionality without the need to change scripts. This turned out to
be risky since it would either break existing scripts, or become
non-standard behaving functionality (writing the messages to
STDERR instead of STDOUT, and continue processing). To overcome these
problems, you suggest to make small modifications to the scripts. No
problem with that, but it defeats the original idea. 

Providing --version and --help handling in a uniform and automated way
by Getopt::* is a good idea that will benefit many programmers.
However, the programmer will have to explicitly indicate, one way or
another, that she wants to use this functionality.

-- Johan

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