Disallow invalid priorities during interactive prompt

This commit is contained in:
Matt Snider 2019-03-24 12:55:10 +01:00
parent c813d5cd6e
commit f1ceda3733
1 changed files with 1 additions and 2 deletions

View File

@ -162,8 +162,7 @@ def task_prompt(**task_data):
'Set priority',
default='',
show_default=False,
type=click.Choice([None, 'L', 'M', 'H']),
value_proc=lambda x: None if '' else x,
type=click.Choice(['L', 'M', 'H', '']),
),
},