[Fai-commit] r4135 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Fri Nov 3 14:16:59 CET 2006
Author: lange
Date: 2006-11-03 14:16:59 +0100 (Fri, 03 Nov 2006)
New Revision: 4135
Modified:
trunk/bin/ainsl
trunk/bin/fai-chboot
trunk/bin/fcopy
Log:
print help and exit if unknow option was given
Modified: trunk/bin/ainsl
===================================================================
--- trunk/bin/ainsl 2006-11-03 12:37:00 UTC (rev 4134)
+++ trunk/bin/ainsl 2006-11-03 13:16:59 UTC (rev 4135)
@@ -63,7 +63,7 @@
close (FILE);
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-getopts('aDhsvn');
+getopts('aDhsvn') || usage;
$opt_h && usage;
$verbose = $opt_v || $ENV{verbose} || 0;
Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot 2006-11-03 12:37:00 UTC (rev 4134)
+++ trunk/bin/fai-chboot 2006-11-03 13:16:59 UTC (rev 4135)
@@ -354,7 +354,7 @@
}
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-getopts('gBc:D:edhnvlLiIpf:Fk:Sto');
+getopts('gBc:D:edhnvlLiIpf:Fk:Sto') || usage;
$opt_h and usage;
defined @ARGV or usage;
Modified: trunk/bin/fcopy
===================================================================
--- trunk/bin/fcopy 2006-11-03 12:37:00 UTC (rev 4134)
+++ trunk/bin/fcopy 2006-11-03 13:16:59 UTC (rev 4135)
@@ -27,7 +27,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-my $version = "Version 2.2.8, 29-october-2006";
+my $version = "Version 2.2.9, 3-november-2006";
use strict;
use File::Copy;
@@ -404,7 +404,7 @@
# main program
$|=1;
-getopts('Ms:t:rm:vidDc:C:hF:lL:P:Bb:I:Un');
+getopts('Ms:t:rm:vidDc:C:hF:lL:P:Bb:I:Un') || usage;
$opt_h && usage;
$dryrun = $ENV{FCOPY_DRYRUN} || $opt_n || 0; # is true if in dry-run mode
$dryrun and warn "Dry-run only! Nothing is really executed.\n";
More information about the Fai-commit
mailing list