diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2016-07-12 01:07:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-12 01:07:01 -0300 |
commit | 79a48fe90fbf718f01815e31c538f674f31e2737 (patch) | |
tree | 693ddd233a3773c500234ec9fa1fe2b11764a4ae /README.md | |
parent | 0d3fe13fdb824d53fffed36060eb139151c10a52 (diff) | |
parent | abc1951a97d67e1c60e40c068d83ff1d932df7f3 (diff) | |
download | highline-79a48fe90fbf718f01815e31c538f674f31e2737.tar.gz |
Merge pull request #203 from fredrb/fix/show_default_menu
Show default value in menu
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -74,6 +74,7 @@ cli.choose do |menu| menu.prompt = "Please choose your favorite programming language? " menu.choice(:ruby) { cli.say("Good choice!") } menu.choices(:python, :perl) { cli.say("Not from around here, are you?") } + menu.default = :ruby end ## Using colored indices on Menus |