summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-01-08 12:17:26 +0000
committerLee Jarvis <ljjarvis@gmail.com>2013-01-08 12:17:26 +0000
commit23fbb4fa00abc4e2aad453194f802b4c78bc2cff (patch)
tree03c431e8ea45b9f03517dc07916539b51f02cebc /README.md
parent19e946c37c62e6bb2dc6ec0b44588fcf7c01f72a (diff)
downloadslop-23fbb4fa00abc4e2aad453194f802b4c78bc2cff.tar.gz
fix commands example
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c8a28cb..40259a4 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,7 @@ opts = Slop.parse do
end
command 'add' do
- on :v, :verbose, 'Enable verbose more'
+ on :v, :verbose, 'Enable verbose mode'
on :name, 'Your name'
run do |opts, args|
@@ -133,7 +133,7 @@ end
# ruby run.rb -v
#=> Version 1.0
-# ruby add -v foo --name Lee
+# ruby run.rb add -v foo --name Lee
#=> You ran 'add' with options {:verbose=>true,:name=>"Lee"} and args ["foo"]
opts.to_hash(true) # Pass true to tell Slop to merge sub-command option values.
# => { :v => nil, :add => { :v => true, :name => "Lee" } }