diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-05-19 15:49:03 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-05-19 15:49:03 +0100 |
commit | c2a29c399d7cb2aee875bf09e8ecf4c828db6391 (patch) | |
tree | f798e5d9223bc739ec407a142957514caa56f125 /README.md | |
parent | 4ced2f228bc706a5ab67c3bcd8cb965e70bef97d (diff) | |
download | slop-c2a29c399d7cb2aee875bf09e8ecf4c828db6391.tar.gz |
oops I lied this variable is not useless! (optparse example)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |