Signed-off-by: Richard Sharpe ([EMAIL PROTECTED])
>From dec198acbd1e723f110c8f04316c28b953bee26e Mon Sep 17 00:00:00 2001
From: Richard Sharpe <[EMAIL PROTECTED]>
Date: Wed, 23 Jul 2008 14:18:59 -0700
Subject: [PATCH] Allow --help when there is no config file ...
---
scripts/tgt-admin | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/tgt-admin b/scripts/tgt-admin
index 05ed2d8..1ec67bb 100755
--- a/scripts/tgt-admin
+++ b/scripts/tgt-admin
@@ -17,9 +17,6 @@ use Getopt::Long;
# Our config file
my $configfile = "/etc/tgt/targets.conf";
-# Parse the config file with Config::General
-my %conf = ParseConfig(-ConfigFile => "$configfile", -UseApacheInclude => 1, -I
ncludeGlob => 1,);
-
sub usage {
print <<EOF;
Usage:
@@ -56,6 +53,8 @@ if (($help == 1) || ($param eq undef)) {
&usage
}
+# Parse the config file with Config::General
+my %conf = ParseConfig(-ConfigFile => "$configfile", -UseApacheInclude => 1, -I
ncludeGlob => 1,);
# Some variables/arrays/hashes we will use globally
my %tgtadm_output;
--
1.5.5.1
_______________________________________________
Stgt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/stgt-devel