summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 18:08:59 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 18:08:59 +0000
commitda8e3efa6400c25f4e572c4187a15a37c72af6b8 (patch)
treeb9e043e4d1b90d08231fd99292baaba355928706 /bin
parentb277145b3f70e8a29dc1445724539b03d90fa108 (diff)
remove previous help method, it's not ideal for the commandline
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot18
1 files changed, 11 insertions, 7 deletions
diff --git a/bin/rbot b/bin/rbot
index 9af50916..962f3d0d 100755
--- 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