summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-01-06 13:17:03 +0000
committerLee Jarvis <ljjarvis@gmail.com>2013-01-06 13:17:03 +0000
commitec615492d8a5f6c9b4fe511f467b5cd7da182b74 (patch)
treeb787a17a47b4189b3978384441def3436df6fa5e /README.md
parentb0d13ea2ae42720536b600ec08c1f1918e767361 (diff)
downloadslop-ec615492d8a5f6c9b4fe511f467b5cd7da182b74.tar.gz
simplify usage even more
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index a12ae7c..8c73ddb 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ Usage
-----
opts = Slop.parse do
- banner "Usage: foo.rb [options]"
+ banner 'Usage: foo.rb [options]'
on 'name=', 'Your name'
on 'p', 'password', 'An optional password', argument: :optional
@@ -27,9 +27,6 @@ Installation
gem install slop
-You can also return your options as a Hash:
-
- opts.to_hash #=> { :name => 'lee', :verbose => true, :password => nil }
Printing Help
-------------