fix(setup): prevent case when user fill nothinf in multiple get_multiple
This commit is contained in:
parent
7c75b0efad
commit
fbafd03ea9
1 changed files with 5 additions and 1 deletions
|
@ -219,7 +219,11 @@ def get_multiple(question: str, confirmation: str, value_type: type)\
|
||||||
List containing user filled values.
|
List containing user filled values.
|
||||||
"""
|
"""
|
||||||
print(question)
|
print(question)
|
||||||
values = [value_type(input('> '))]
|
user_input = input('> ')
|
||||||
|
if not user_input:
|
||||||
|
return []
|
||||||
|
|
||||||
|
values = [user_input]
|
||||||
|
|
||||||
while click.confirm(confirmation, default=False):
|
while click.confirm(confirmation, default=False):
|
||||||
values.append(value_type(input('> ')))
|
values.append(value_type(input('> ')))
|
||||||
|
|
Loading…
Reference in a new issue