aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 15:09:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 15:09:36 +0000
commit80445b21221237e50d9aa694a842d1559b9ff050 (patch)
tree38ef9f8f0d98e049e06fcfec1554d4f02e9c0ed5
parent4f38a8a59541dd239b24a616938b73fb339b5498 (diff)
downloadrpmtools-80445b21221237e50d9aa694a842d1559b9ff050.tar
rpmtools-80445b21221237e50d9aa694a842d1559b9ff050.tar.gz
rpmtools-80445b21221237e50d9aa694a842d1559b9ff050.tar.bz2
rpmtools-80445b21221237e50d9aa694a842d1559b9ff050.tar.xz
rpmtools-80445b21221237e50d9aa694a842d1559b9ff050.zip
Add --version. Doc clarification.
-rwxr-xr-xpackdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/packdrake b/packdrake
index 4923261..46c1aee 100755
--- a/packdrake
+++ b/packdrake
@@ -21,6 +21,7 @@ my @list;
my $error_mode = "packdrake: choose only --build, --extract, --list or --cat\n";
foreach (@ARGV) {
/^--help$/ and usage();
+ /^--version$/ and do { print "$0 version $packdrake::VERSION\n"; exit 0 };
/^--build$/ and do { $mode and die $error_mode; $mode = "build"; @nextargv = (\$file); next };
/^--extract$/ and do { $mode and die $error_mode; $mode = "extract"; @nextargv = (\$file, \$dir); next };
/^--list$/ and do { $mode and die $error_mode; $mode = "list"; @nextargv = (\$file); next };
@@ -118,7 +119,7 @@ Default is deduced from the archive filename (gzip or bzip2).
=item --compress cmd
-Select compression command.
+Select compression command (e.g. C<gzip -9>).
=back