aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-04-03 14:39:52 -0400
commit4145df7bc4a4335c8ac5d123a8d02104f4e7dc55 (patch)
tree3b09842e31c1c4a646aec10c1212d362c314f0e6 /becommands/set.py
parent57ad245e927b1e5a9b230de3605431a041bb192e (diff)
parentb29e00c9cc5ef707719019728a25a71faa5a66a8 (diff)
downloadbugseverywhere-4145df7bc4a4335c8ac5d123a8d02104f4e7dc55.tar.gz
Merge help updates
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/becommands/set.py b/becommands/set.py
index 2a977ca..18a6024 100644
--- a/becommands/set.py
+++ b/becommands/set.py
@@ -32,6 +32,7 @@ def execute(args):
None
>>> tests.clean_up()
"""
+ options, args = get_parser().parse_args(args)
if len(args) > 2:
raise cmdutil.UserError("Too many arguments.")
tree = cmdutil.bug_tree()
@@ -49,9 +50,11 @@ def execute(args):
del tree.settings[args[0]]
tree.save_settings()
-def help():
- return """be set [name] [value]
+def get_parser():
+ parser = cmdutil.CmdOptionParser("be set [name] [value]")
+ return parser
+longhelp="""
Show or change per-tree settings.
If name and value are supplied, the name is set to a new value.
@@ -66,3 +69,7 @@ target
To unset a setting, set it to "none".
"""
+
+def help():
+ return get_parser().help_str() + longhelp
+