diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-06-06 22:17:57 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-06-06 22:17:57 +0100 |
commit | 44e3b19e593f8620fee0069010cb04ff9485148e (patch) | |
tree | 1c4e2f2cbefecd85df68602ffcae64414c5a0254 /README.md | |
parent | a99e532f9db3cba273d88da0ec681dbed1d1339d (diff) | |
download | slop-44e3b19e593f8620fee0069010cb04ff9485148e.tar.gz |
added link to lists wiki page
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -193,14 +193,8 @@ You can of course also parse lists into options. Here's how: # ARGV is `--people lee,john,bill` opts[:people] #=> ['lee', 'john', 'bill'] -You can also change both the split delimiter and limit - - opts = Slop.parse do - opt :people, true, :as => Array, :delimiter => ':', :limit => 2) - end - - # ARGV is `--people lee:injekt:bob` - opts[:people] #=> ["lee", "injekt:bob"] +Slop supports a few styles of list parsing. Check out +[this wiki page](https://github.com/injekt/slop/wiki/Lists) for more info. Ranges ------ |