diff options
| author | fukachan <fukachan> | 2001-02-18 04:56:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-02-18 04:56:11 +0000 |
| commit | adefc3267af98da52b4eafd9df0ada36ea36803a (patch) | |
| tree | 20f36ab8d9621abab6ee073efbf4602907f43fab /fml/lib/FML/Process/Configure.pm | |
| parent | c138f7bb48a8a34ef904ae942f19075ec3020f57 (diff) | |
| download | fml8-adefc3267af98da52b4eafd9df0ada36ea36803a.tar.gz fml8-adefc3267af98da52b4eafd9df0ada36ea36803a.tar.bz2 fml8-adefc3267af98da52b4eafd9df0ada36ea36803a.zip | |
fix how to work when $argv[0] is not specified
Diffstat (limited to 'fml/lib/FML/Process/Configure.pm')
| -rw-r--r-- | fml/lib/FML/Process/Configure.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Configure.pm b/fml/lib/FML/Process/Configure.pm index bbcce69f..e1747c8c 100644 --- a/fml/lib/FML/Process/Configure.pm +++ b/fml/lib/FML/Process/Configure.pm @@ -43,7 +43,6 @@ sub run my $config = $curproc->{ config }; my $myname = $args->{ myname }; my $argv = $args->{ ARGV }; - my $command = $argv->[ 0 ] || croak("command not specified\n"); # XXX debug # use Data::Dumper; print Dumper( $args ); sleep 3; @@ -55,6 +54,7 @@ sub run exec 'perldoc', '-v', @$argv; } else { + my $command = $argv->[ 0 ] || croak("command not specified\n"); $curproc->lock(); { ; @@ -69,6 +69,7 @@ sub _show_conf my ($curproc, $args) = @_; my $config = $curproc->{ config }; my $mode = $args->{ options }->{ n } ? 'difference_only' : 'all'; + my $argv = $args->{ ARGV }; $config->dump_variables({ mode => $mode }); } |
