Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to return index/position of selected option rather than its value #57

Closed
askvictor opened this issue Jan 25, 2020 · 1 comment
Closed

Comments

@askvictor
Copy link

Sort of similar to #27 but slightly simpler - it would be nice to have the option to get back the index of the selected option rather than it's value. This could be an argument to the launch method. For example, if the choices are ['yellow', 'red', 'green'], and I call something like cli.launch(return_index=True) then if the user selects 'yellow' it would return a value of 0.

@askvictor
Copy link
Author

PR created: #58

@bchao1 bchao1 closed this as completed Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants