summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-05-19 15:49:03 +0100
committerLee Jarvis <lee@jarvis.co>2011-05-19 15:49:03 +0100
commitc2a29c399d7cb2aee875bf09e8ecf4c828db6391 (patch)
treef798e5d9223bc739ec407a142957514caa56f125 /README.md
parent4ced2f228bc706a5ab67c3bcd8cb965e70bef97d (diff)
downloadslop-c2a29c399d7cb2aee875bf09e8ecf4c828db6391.tar.gz
oops I lied this variable is not useless! (optparse example)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2920860..a585546 100644
--- a/README.md
+++ b/README.md
@@ -347,7 +347,7 @@ gather a bunch of key/value options, usually you would do something like this:
things = {}
- OptionParser.new do |opt|
+ opt = OptionParser.new do |opt|
opt.on('-n', '--name NAME', 'Your name') do |name|
things[:name] = name
end