our %switch;
GetOptions(\%switch, 'all|a', 'upgrade-all|u', 'show-config|s', 'global|g',
- 'help|h');
+ 'shell', 'help|h');
pod2usage({ -verbose => 1 }) if $switch{'help'};
set_cpan_config($switch{'global'});
if ($switch{'show-config'}) {
- print Dumper($CPAN::Config);
- exit;
+ print Dumper($CPAN::Config);
+ exit;
}
my $can_notest = 1;
print "* You can upgrade CPAN by doing: $^X install-module.pl CPAN\n";
}
+if ($switch{'shell'}) {
+ CPAN::shell();
+ exit;
+}
+
if ($switch{'all'} || $switch{'upgrade-all'}) {
my @modules;
if ($switch{'upgrade-all'}) {
./install-module.pl --all [--global]
./install-module.pl --upgrade-all [--global]
./install-module.pl --show-config
+ ./install-module.pl --shell
Do "./install-module.pl --help" for more information.
Prints out the CPAN configuration in raw Perl format. Useful for debugging.
+=item B<--shell>
+
+Starts a CPAN shell using the configuration of F<install-module.pl>.
+
=item B<--help>
Shows this help.