- implement help
authorAndreas Scherbaum <andreas@scherbaum.biz>
Thu, 21 Jun 2012 20:10:08 +0000 (22:10 +0200)
committerAndreas Scherbaum <andreas@scherbaum.biz>
Thu, 21 Jun 2012 20:10:08 +0000 (22:10 +0200)
docbot.pl

index e769222f2edb1915cc62ad3e7b9edaa77d157bce..59396ff8a536f8bd3c93939e06ef04f6f9dd9fd3 100755 (executable)
--- 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();