diff options
Diffstat (limited to 'becommands/set.py')
-rw-r--r-- | becommands/set.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/becommands/set.py b/becommands/set.py new file mode 100644 index 0000000..956a95e --- /dev/null +++ b/becommands/set.py @@ -0,0 +1,11 @@ +"""Change tree settings""" +from libbe import cmdutil +def execute(args): + assert len(args) in (1, 2) + tree = cmdutil.bug_tree() + if len(args) == 1: + print tree.settings.get(args[0]) + else: + tree.settings[args[0]] = args[1] + tree.save_settings() + |