aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper@hkcreations.org>2011-03-29 13:52:25 -0500
committerAndrew Cooper <andrew.cooper@hkcreations.org>2011-03-29 13:52:25 -0500
commit722cc27b216b20a0071d445a414d72d88aed040a (patch)
treef0128fda988fbbad38dfec027eb519fc80e36d35 /libbe/command
parent1e0967ab82d8541413e1dfe4d2e78f1008aa9c5b (diff)
downloadbugseverywhere-722cc27b216b20a0071d445a414d72d88aed040a.tar.gz
Add options --status and --severity to `be new`
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/new.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py
index 7dfbed8..7a5c51d 100644
--- a/libbe/command/new.py
+++ b/libbe/command/new.py
@@ -78,6 +78,16 @@ class New (libbe.command.Command):
arg=libbe.command.Argument(
name='assigned', metavar='NAME',
completion_callback=libbe.command.util.complete_assigned)),
+ libbe.command.Option(name='status', short_name='t',
+ help='The bug\'s status level',
+ arg=libbe.command.Argument(
+ name='status', metavar='STATUS',
+ completion_callback=libbe.command.util.complete_status)),
+ libbe.command.Option(name='severity', short_name='s',
+ help='The bug\'s severity',
+ arg=libbe.command.Argument(
+ name='severity', metavar='SEVERITY',
+ completion_callback=libbe.command.util.complete_severity)),
])
self.args.extend([
libbe.command.Argument(name='summary', metavar='SUMMARY')
@@ -100,6 +110,10 @@ class New (libbe.command.Command):
bug.reporter = bug.creator
if params['assigned'] != None:
bug.assigned = params['assigned']
+ if params['status'] != None:
+ bug.status = params['status']
+ if params['severity'] != None:
+ bug.severity = params['severity']
print >> self.stdout, 'Created bug with ID %s' % bug.id.user()
return 0