source: trunk/essentials/dev-lang/perl/lib/CPAN/bin/cpan

Last change on this file was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 3.7 KB
Line 
1#!/usr/bin/perl
2# $Id: cpan,v 1.3 2002/08/30 08:55:15 k Exp $
3use strict;
4
5=head1 NAME
6
7cpan - 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
25This script provides a command interface (not a shell) to CPAN.pm.
26
27=head2 Meta Options
28
29These options are mutually exclusive, and the script processes
30them in this order: [ahvr]. Once the script finds one, it ignores
31the others, and then exits after it finishes the task. The script
32ignores any other command line options.
33
34=over 4
35
36=item -a
37
38Creates the CPAN.pm autobundle with CPAN::Shell->autobundle.
39
40=item -h
41
42Prints a help message.
43
44=item -r
45
46Recompiles dynamically loaded modules with CPAN::Shell->recompile.
47