diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-04-14 21:18:43 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-04-14 21:18:43 +0100 |
commit | ecf1668dedfbe67335716600c0eea6686d15dcff (patch) | |
tree | d354b7b8c76dca7bb8e4e67f1bc2a76d33db78d0 /README.md | |
parent | 64e86aaf28031459bf8bdf438c57860dd3cde25a (diff) | |
download | slop-ecf1668dedfbe67335716600c0eea6686d15dcff.tar.gz |
formatting
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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? ------------------------------------------ |