X-Git-Url: http://git.home-dn.net/?p=manu%2Fsslexpire.git;a=blobdiff_plain;f=sslexpire%2Fsslexpire;h=6b2646e2f6ff38a73b7aac1a5d737744382c12df;hp=0cd50600c022f426d8b4334c830d02ae12d69fcc;hb=64479e83c2e12dc497fe1a3863128560eb7f2438;hpb=879c4f2c7d9446c185d5a73416de886e0667aee9 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; }