This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Convert installperl to use Getopt::Long.
authorNicholas Clark <nick@ccl4.org>
Wed, 25 Apr 2012 12:38:00 +0000 (14:38 +0200)
committerNicholas Clark <nick@ccl4.org>
Sat, 13 Jul 2013 10:01:37 +0000 (12:01 +0200)
commit3f7e1bf8b573541d1d93e89278657b6e6438b69a
tree700c5b352f13e1ee7d3a18c09e74f2c78dedd496
parent4609f84fc954f9ef279e0204408c7e7f64fa58c9
Convert installperl to use Getopt::Long.

This requires some special handling for the +v option. Fortunately, we can
cheat, because we know that no other non-options are acceptable. This does
change the behaviour slightly from before:

* single letter options now also have long names
* invalid options are now rejected
* command line arguments that are not options are now rejected

However, the behaviour for all valid documented invocations is unchanged.

Also, add a --help option to display the usage message.
installperl