# 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,
# 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 (<CONF>) {
# Skip comments
next if (/^[ \t]*#/);
-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;
}