summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-04-14 21:18:43 +0100
committerLee Jarvis <lee@jarvis.co>2011-04-14 21:18:43 +0100
commitecf1668dedfbe67335716600c0eea6686d15dcff (patch)
treed354b7b8c76dca7bb8e4e67f1bc2a76d33db78d0 /README.md
parent64e86aaf28031459bf8bdf438c57860dd3cde25a (diff)
downloadslop-ecf1668dedfbe67335716600c0eea6686d15dcff.tar.gz
formatting
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1c5fc04..a3388b0 100644
--- a/README.md
+++ b/README.md
@@ -327,7 +327,7 @@ check if it is a `command`.
Slop.parse ['foo', '--bar', 'baz']
Slop will look to see if the `foo` command exists, and if it does, it'll pass
-the options ['--bar', 'baz'] to the instance of Slop that belongs to `foo`.
+the options `['--bar', 'baz']` to the instance of Slop that belongs to `foo`.
Here's how commands might look:
opts = Slop.new do
@@ -347,8 +347,11 @@ Here's how commands might look:
end
end
-Now with `run.rb -v` this will print `version 1` and with
-`run.rb clean -v` it will print `Enabled verbose mode for clean`
+Run with `run.rb -v`
+Output: `version 1`
+
+Run with: `run.rb clean -v`
+Output: `Enabled verbose mode for clean`
Woah woah, why you hating on OptionParser?
------------------------------------------