| 1 | #!/usr/bin/perl
|
|---|
| 2 | # $Id: cpan,v 1.3 2002/08/30 08:55:15 k Exp $
|
|---|
| 3 | use strict;
|
|---|
| 4 |
|
|---|
| 5 | =head1 NAME
|
|---|
| 6 |
|
|---|
| 7 | cpan - easily interact with CPAN from the command line
|
|---|
| 8 |
|
|---|
| 9 | =head1 SYNOPSIS
|
|---|
| 10 |
|
|---|
| 11 | # with arguments, installs specified modules
|
|---|
| 12 | cpan module_name [ module_name ... ]
|
|---|
| 13 |
|
|---|
| 14 | # with switches, installs modules with extra behavior
|
|---|
| 15 | cpan [-cimt] module_name [ module_name ... ]
|
|---|
| 16 |
|
|---|
| 17 | # without arguments, starts CPAN shell
|
|---|
| 18 | cpan
|
|---|
| 19 |
|
|---|
| 20 | # without arguments, but some switches
|
|---|
| 21 | cpan [-ahrv]
|
|---|
| 22 |
|
|---|
| 23 | =head1 DESCRIPTION
|
|---|
| 24 |
|
|---|
| 25 | This script provides a command interface (not a shell) to CPAN.pm.
|
|---|
| 26 |
|
|---|
| 27 | =head2 Meta Options
|
|---|
| 28 |
|
|---|
| 29 | These options are mutually exclusive, and the script processes
|
|---|
| 30 | them in this order: [ahvr]. Once the script finds one, it ignores
|
|---|
| 31 | the others, and then exits after it finishes the task. The script
|
|---|
| 32 | ignores any other command line options.
|
|---|
| 33 |
|
|---|
| 34 | =over 4
|
|---|
| 35 |
|
|---|
| 36 | =item -a
|
|---|
| 37 |
|
|---|
| 38 | Creates the CPAN.pm autobundle with CPAN::Shell->autobundle.
|
|---|
| 39 |
|
|---|
| 40 | =item -h
|
|---|
| 41 |
|
|---|
| 42 | Prints a help message.
|
|---|
| 43 |
|
|---|
| 44 | =item -r
|
|---|
| 45 |
|
|---|
| 46 | Recompiles dynamically loaded modules with CPAN::Shell->recompile.
|
|---|
| 47 |
|
|---|
|
|---|