]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
remove previous help method, it's not ideal for the commandline
authorTom Gilbert <tom@linuxbrit.co.uk>
Wed, 27 Jul 2005 18:08:59 +0000 (18:08 +0000)
committerTom Gilbert <tom@linuxbrit.co.uk>
Wed, 27 Jul 2005 18:08:59 +0000 (18:08 +0000)
bin/rbot

index 9af50916cda67e8a76ffac12877bf01ebfa60ebb..962f3d0d992c0e449c7e01f88a174f9c5a559683 100755 (executable)
--- a/bin/rbot
+++ b/bin/rbot
@@ -61,13 +61,17 @@ if ($opts["version"])
   exit 0
 end
 
+if ($opts["help"])
+  puts "usage: rbot [options] [config directory]"
+  puts "  -h, --help         this message"
+  puts "  -v, --version      version information"
+  puts "  -d, --debug        enable debug messages"
+  puts "config directory defaults to ~/.rbot"
+  exit 0
+end
+
 if(bot = Irc::IrcBot.new(ARGV.shift))
-  if($opts["help"])
-    # query bot help from the commandline
-    puts bot.help($opts["help"])
-  else
-    # just run the bot
-    bot.mainloop
-  end
+  # just run the bot
+  bot.mainloop
 end