Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

echo.prompt should print prompt choices when they are present #53

Closed Jaymon closed 5 years ago

Jaymon commented 5 years ago

so if you did something like:

answer = echo.prompt("Is this ok?", choices={"y": ["yes", "y"], "n": ["no", "n"]})

would result in:

Is this ok? (y|n)