AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

fix: error message for MinItems validator #389

Closed mostafahussein closed 2 years ago

mostafahussein commented 2 years ago

Currently when using survey.MinItems(1) with no items selected it says:

X Sorry, your reply was invalid: value is too long. Min items is 1

However it should be too short not too long