Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Added option prompt #134

Merged
merged 1 commit into from Jan 9, 2015
Merged

Added option prompt #134

merged 1 commit into from Jan 9, 2015

Conversation

dstrohl
Copy link

@dstrohl dstrohl commented Jan 3, 2015

I added an additional prompt type called "option" that will display a list of options, allow a choice, and return a value.

I also added it to the prompt.py example file, and added a optionValidator class for it.

Definitions on defining the options are in the docstring.

(2) this is the second string
(3) this is the third string

please select 1-3:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I actually didn't add in the "please select 1-3" text, but I suppose it could be put in pretty easily.

kennethreitz added a commit that referenced this pull request Jan 9, 2015
@kennethreitz kennethreitz merged commit 140d858 into kennethreitz:master Jan 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants