diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 18:08:59 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 18:08:59 +0000 |
commit | da8e3efa6400c25f4e572c4187a15a37c72af6b8 (patch) | |
tree | b9e043e4d1b90d08231fd99292baaba355928706 /bin | |
parent | b277145b3f70e8a29dc1445724539b03d90fa108 (diff) |
remove previous help method, it's not ideal for the commandline
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rbot | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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 |