diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-06-08 15:26:41 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-06-08 15:26:41 +0100 |
commit | 1be7098b455bd82deabc13a491316bf9fa9dbcf9 (patch) | |
tree | c914f10979223acda82415e1d7767fdd219543aa /README.md | |
parent | 11fab5f73f99b49a403531c25134bcc1caff48e9 (diff) | |
download | slop-1be7098b455bd82deabc13a491316bf9fa9dbcf9.tar.gz |
oops, missed more commands in readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -209,21 +209,6 @@ when an invalid option is found (`false` by default): Slop.new(:strict => true).parse(%w/--foo/) # => Slop::InvalidOptionError: Unknown option -- 'foo' -Commands --------- - -Slop allows you to nest more instances of Slop inside of `commands`. These -instances will then be used to parse arguments if they're called upon. - -Slop will use the first argument in the list of items passed to `parse` to -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`. -Here's how commands might look: - Features -------- |