mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Disallow invalid priorities during interactive prompt
This commit is contained in:
parent
c813d5cd6e
commit
f1ceda3733
@ -162,8 +162,7 @@ def task_prompt(**task_data):
|
|||||||
'Set priority',
|
'Set priority',
|
||||||
default='',
|
default='',
|
||||||
show_default=False,
|
show_default=False,
|
||||||
type=click.Choice([None, 'L', 'M', 'H']),
|
type=click.Choice(['L', 'M', 'H', '']),
|
||||||
value_proc=lambda x: None if '' else x,
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user