aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
blob: 956a95e5736e1b538e2bc65d205778fea7265811 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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()