summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-25 07:47:32 +0000
committerfukachan <fukachan>2001-11-25 07:47:32 +0000
commit22645f477162aee0f2455f73bc1fca3540282d94 (patch)
tree9c182e5836e16e3ec31a100cb3b9f63e7be86116 /fml/lib/FML/Process
parentd5e17a02dea3c6dd251f7ba2aebe657e44c3f5fc (diff)
downloadfml8-22645f477162aee0f2455f73bc1fca3540282d94.tar.gz
fml8-22645f477162aee0f2455f73bc1fca3540282d94.tar.bz2
fml8-22645f477162aee0f2455f73bc1fca3540282d94.zip
enable distribute and command
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Switch.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/fml/lib/FML/Process/Switch.pm b/fml/lib/FML/Process/Switch.pm
index 7d779022..f94d96bc 100644
--- a/fml/lib/FML/Process/Switch.pm
+++ b/fml/lib/FML/Process/Switch.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Switch.pm,v 1.44 2001/11/25 05:13:22 fukachan Exp $
+# $FML: Switch.pm,v 1.45 2001/11/25 06:46:29 fukachan Exp $
#
package FML::Process::Switch;
@@ -103,11 +103,11 @@ sub main::Bootstrap2
# 1.1 parse command line options (preliminary)
{
- my $opt = _module_specific_options($myname);
- if ($opt) {
+ my (@options) = _module_specific_options($myname);
+ if (@options) {
eval q{
use Getopt::Long;
- GetOptions(\%options, $opt);
+ GetOptions(\%options, _module_specific_options($myname));
};
croak($@) if $@;
}
@@ -366,7 +366,9 @@ sub _module_specific_options
# XXX Caution!
# XXX xxx.cgi SHOULD NOT ACCPET the same options as command line
# XXX program xxx does.
- if ($myname eq 'fml.pl' ||
+ if ($myname eq 'fml.pl' ||
+ $myname eq 'distribute' ||
+ $myname eq 'command' ||
$myname eq 'loader' ) {
return qw(ctladdr! debug! help! params=s -c=s);
}