CITGuru / PyInquirer

A Python module for common interactive command line user interfaces
MIT License
1.91k stars 235 forks source link

Default not working for lists #142

Closed richardjpope closed 3 years ago

richardjpope commented 3 years ago

Setting the default option does not select the default when the question is asked

from PyInquirer import prompt

questions = [{'type': 'list', 'name': 'format','message': 'Format', 'choices': ['app', 'web', 'print', 'phone', 'in person', 'other'], 'default': 'phone'}]
answers = prompt(questions)
richardjpope commented 3 years ago

Apologies - I see this has been fixed in a subsequent release

inyerade commented 3 years ago

issue still present in PyInquirer==1.0.3