diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-06 13:17:03 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-06 13:17:03 +0000 |
commit | ec615492d8a5f6c9b4fe511f467b5cd7da182b74 (patch) | |
tree | b787a17a47b4189b3978384441def3436df6fa5e /README.md | |
parent | b0d13ea2ae42720536b600ec08c1f1918e767361 (diff) | |
download | slop-ec615492d8a5f6c9b4fe511f467b5cd7da182b74.tar.gz |
simplify usage even more
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 ------------- |