summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-11-26 10:47:22 +0000
committerfukachan <fukachan>2002-11-26 10:47:22 +0000
commit6b699cb21edd6773db91eda8ab43311f2d5cc855 (patch)
tree8a3b8f90fb6ca3b974ae3c55b33ce2d2eae71d73 /fml
parent28935da957a02145629aa53127b68d532509218c (diff)
downloadfml8-6b699cb21edd6773db91eda8ab43311f2d5cc855.tar.gz
fml8-6b699cb21edd6773db91eda8ab43311f2d5cc855.tar.bz2
fml8-6b699cb21edd6773db91eda8ab43311f2d5cc855.zip
fix help and conditions to show help
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/FML/Process/Summary.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/fml/lib/FML/Process/Summary.pm b/fml/lib/FML/Process/Summary.pm
index 559ad169..1f33a2c4 100644
--- a/fml/lib/FML/Process/Summary.pm
+++ b/fml/lib/FML/Process/Summary.pm
@@ -3,7 +3,7 @@
# Copyright (C) 2001,2002 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Summary.pm,v 1.1 2002/11/26 09:45:34 fukachan Exp $
+# $FML: Summary.pm,v 1.2 2002/11/26 10:30:06 fukachan Exp $
#
package FML::Process::Summary;
@@ -90,14 +90,14 @@ sub prepare
sub verify_request
{
my ($curproc, $args) = @_;
- my $argv = $curproc->command_line_argv();
- my $len = $#$argv + 1;
+ my $argv = $curproc->command_line_argv();
+ my $len = $#$argv;
my $config = $curproc->{ config };
my $eval = $config->get_hook( 'fmlsummary_verify_request_start_hook' );
if ($eval) { eval qq{ $eval; }; LogWarn($@) if $@; }
- if (0) {
+ if ($len < 1) {
print STDERR "Error: missing argument(s)\n";
$curproc->help();
exit(0);
@@ -178,7 +178,7 @@ Usage: $name \$command \$ml_name [options]
$name help \$ml_name show this help
-$name list
+$name rebuild \$ml_name rebuild summary file.
_EOF_
}