summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2016-07-12 01:07:01 -0300
committerGitHub <noreply@github.com>2016-07-12 01:07:01 -0300
commit79a48fe90fbf718f01815e31c538f674f31e2737 (patch)
tree693ddd233a3773c500234ec9fa1fe2b11764a4ae /README.md
parent0d3fe13fdb824d53fffed36060eb139151c10a52 (diff)
parentabc1951a97d67e1c60e40c068d83ff1d932df7f3 (diff)
downloadhighline-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.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index f290b87..a4481a9 100644
--- a/README.md
+++ b/README.md
@@ -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