From 5041bbd8e2eab1c6155fa767238083f53912d0a2 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Wed, 2 Apr 2008 17:56:50 -0400 Subject: Patch to add --blocked and --dependson from jkeating --- bugzilla | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bugzilla b/bugzilla index caeda15..865095d 100755 --- a/bugzilla +++ b/bugzilla @@ -84,6 +84,10 @@ def setup_action_parser(action): help="OPTIONAL: URL for further bug info") p.add_option('--cc', help="OPTIONAL: add emails to initial CC list") + p.add_option('--blocked', + help="OPTIONAL: block bugs with this new bug") + p.add_option('--dependson', + help="OPTIONAL: mark this bug as depending on this list of bugs", default=' ') # TODO: alias, assigned_to, reporter, qa_contact, dependson, blocked elif action == 'query': p.add_option('-p','--product', @@ -233,7 +237,7 @@ if __name__ == '__main__': data = dict() required=['product','component','version','short_desc','comment', 'rep_platform','bug_severity','op_sys','bug_file_loc','priority'] - optional=['cc'] + optional=['cc', 'blocked', 'dependson'] for a in required + optional: i = getattr(opt,a) if i: -- cgit