aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 15:56:25 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 15:56:25 +0200
commitd6763f584a7bf99a023cebd1028592c1cf299416 (patch)
treec650c34802f7ec1ade0b1e2c5c5f5281ac0f8ef4
parentDon't try to fetch the buglist if there are no announcements for the instance. (diff)
downloadrbot-bugzilla-d6763f584a7bf99a023cebd1028592c1cf299416.tar.gz
rbot-bugzilla-d6763f584a7bf99a023cebd1028592c1cf299416.tar.bz2
rbot-bugzilla-d6763f584a7bf99a023cebd1028592c1cf299416.zip
Fix help for zilla instance set, use the OPTIONS array to get the correct list of options.
-rw-r--r--bugzilla.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 4457a08..b76174e 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -678,7 +678,7 @@ class BugzillaPlugin < Plugin
"zilla instance" => "zilla instance #{Bold}add#{Bold}|#{Bold}delete#{Bold}|#{Bold}set#{Bold}|#{Bold}show#{Bold}|#{Bold}list#{Bold} : handle bugzilla instances",
"zilla instance add" => "zilla instance add #{Bold}name#{Bold} #{Bold}baseurl#{Bold} : adds a new bugzilla (use \#{bugno} in URLs to replace the bug number)",
"zilla instance delete" => "zilla instance delete #{Bold}name#{Bold} : delete the named bugzilla",
- "zilla instance set" => "zilla instance set #{Bold}name#{Bold} #{Bold}option#{Bold} #{Bold}value{#Bold} : set the option to a given value for the zilla. Valid options are baseurl, dataurl, showbugurl",
+ "zilla instance set" => "zilla instance set #{Bold}name#{Bold} #{Bold}option#{Bold} #{Bold}value#{Bold} : set the option to a given value for the zilla. Valid options are " + OPTIONS.join(", "),
"zilla instance list" => "zilla instance list : shows current querable bugzilla instancess",
"zilla instance show" => "zilla instance show #{Bold}name#{Bold} : shows the configuration for the named bugzilla.",