From be713557650c789b31a7d9a7525ea5a4e37f26d8 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 29 Mar 2011 13:52:52 -0500 Subject: [PATCH] Add support for 'none' and '-' with --assigned like in `be assign` --- libbe/command/new.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libbe/command/new.py b/libbe/command/new.py index 7a5c51d..849eafb 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -109,7 +109,12 @@ class New (libbe.command.Command): else: bug.reporter = bug.creator if params['assigned'] != None: - bug.assigned = params['assigned'] + assigned = params['assigned'] + if assigned == 'none': + assigned = None + elif assigned == '-': + assigned = self._get_user_id() + bug.assigned = assigned if params['status'] != None: bug.status = params['status'] if params['severity'] != None: -- 2.26.2