From 64479e83c2e12dc497fe1a3863128560eb7f2438 Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Thu, 8 Jun 2006 20:57:08 +0000 Subject: [PATCH] Added verbose and version options in usage fonction. --- sslexpire/sslexpire | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sslexpire/sslexpire b/sslexpire/sslexpire index 0cd5060..6b2646e 100755 --- a/sslexpire/sslexpire +++ b/sslexpire/sslexpire @@ -59,7 +59,7 @@ my $tmp; # output : -m = mail, default = stdout # host : -h host, -p port, default = from config file # config : -f configfile, default /etc/sslexpire/sslexpire.conf -# standard : --help, --version +# standard : --help, --version, --verbose my %opts; GetOptions (\%opts, @@ -88,7 +88,7 @@ if (($opts{'host'}) && ($opts{'port'})) { # Parse config file - open (CONF,$conf) or die "Couldn't read configuration file $conf: $!\n"; + open (CONF,$conf) or die "ERR: Couldn't read configuration file $conf: $!\n"; while () { # Skip comments next if (/^[ \t]*#/); @@ -138,7 +138,9 @@ sub usage { -p, --port=TCPPORT check this port on the previous host -m, --mail report by mail instead of STDOUT -c, --conf=FILE use this config file +-v, --verbose print out verbose messages --help print this help, then exit + --version print out version information "; exit; } -- 2.11.0