diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-05 22:00:04 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-05 22:00:04 -0500 |
commit | fadbadc2bf763351ef572c5a584964f42b349f96 (patch) | |
tree | 3da2ca2c1934eac0054c19cd259053c5067b7d00 /becommands/depend.py | |
parent | 0295c3f04ac457081559064ddf965dc507d04553 (diff) | |
download | bugseverywhere-fadbadc2bf763351ef572c5a584964f42b349f96.tar.gz |
Removed target stuff from becommands/list.py and tweaked options.
Now --status, --severity, and --assigned all use
cmdutil.select_values() for nice whitelist/blacklist selection.
Diffstat (limited to 'becommands/depend.py')
-rw-r--r-- | becommands/depend.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/becommands/depend.py b/becommands/depend.py index d19845d..1a2b905 100644 --- a/becommands/depend.py +++ b/becommands/depend.py @@ -95,9 +95,9 @@ def execute(args, manipulate_encodings=True, restrict_file_access=False): return 0 allowed_status_values = \ - cmdutil.select_values(options.limit_status, bug.status_values) + cmdutil.select_values(options.status, bug.status_values) allowed_severity_values = \ - cmdutil.select_values(options.limit_severity, bug.severity_values) + cmdutil.select_values(options.severity, bug.severity_values) bugA = cmdutil.bug_from_id(bd, args[0]) @@ -149,10 +149,9 @@ def get_parser(): parser.add_option("-s", "--show-status", action="store_true", dest="show_status", default=False, help="Show status of blocking bugs") - parser.add_option("--status", dest="limit_status", metavar="STATUS", + parser.add_option("--status", dest="status", metavar="STATUS", help="Only show bugs matching the STATUS specifier") - parser.add_option("--severity", dest="limit_severity", - metavar="SEVERITY", + parser.add_option("--severity", dest="severity", metavar="SEVERITY", help="Only show bugs matching the SEVERITY specifier") parser.add_option("-t", "--tree-depth", metavar="DEPTH", default=None, type="int", dest="tree_depth", |