Skip to content

handle missing and invalid values when prompting #820

@lkingland

Description

@lkingland

When a user provides an invalid option for a flag, a prompt selection default is not actually selected despite its UX showing selected.

When a flag or environment variable being used as a prompt selection is empty (has no default value), the selection default is not actually selected despite its UX showing selected.

In situations where a Flag is being used to directly set the default value for a survey.Select prompt, that default should only be set when the value provided by the user both exists and is one of the options.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions