summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chilton <andychilton@gmail.com>2008-06-23 23:29:44 +1200
committerFrancois Marier <francois@debian.org>2008-06-24 16:47:53 +1200
commit4a3d6de5fa445615f65aa41b19ada27f5b58ad6f (patch)
tree374661c3ada6d3d306b459e6347fda8b10a8d0ae
parentc99c53cd21da16b051a376236ea2bec7e3be2700 (diff)
Fix bug when passing args to 'cmd_extract'.
-rwxr-xr-xbin/cil4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cil b/bin/cil
index 0d55f66..08968dd 100755
--- a/bin/cil
+++ b/bin/cil
@@ -42,7 +42,7 @@ my @IN_OPTS = (
'p=s', # p = path
'path>p', # for 'add'
'f=s', # f = filename
- 'filename=f', # for 'extract'
+ 'filename>f', # for 'extract'
'help',
'version',
@@ -347,7 +347,7 @@ EOF
}
sub cmd_extract {
- my ($cil, undef, $attachment_name, $args) = @_;
+ my ($cil, $args, $attachment_name) = @_;
my $attachment = CIL::Attachment->new_from_name($cil, $attachment_name);
unless ( defined $attachment ) {