From: Andreas Scherbaum Date: Thu, 21 Jun 2012 20:10:08 +0000 (+0200) Subject: - implement help X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=c260cc9186e5efdc30f4f3a3522d9042ad0a4886;p=docbot.git - implement help --- diff --git a/docbot.pl b/docbot.pl index e769222..59396ff 100755 --- a/docbot.pl +++ b/docbot.pl @@ -131,6 +131,19 @@ my $shutdown = 0; ###################################################################### +if ($main::help == 1) { + print "\n"; + print " $0 [options]\n"; + print "\n"; + print "The following options are available:\n"; + print " -h --help\t\tThis help\n"; + print " -d --debug\t\tEnable debug messages\n"; + print " -D\t\t\tEnable IRC traffic debugging\n"; + print " -c --config\t\tConfig file (required)\n"; + print " -l --logfile\t\tLogfile\n"; + print "\n"; + exit(0); +} init_terminal();