diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-11-07 19:05:46 -0800 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-11-07 19:05:46 -0800 |
commit | 431e56eac151b60a174b04bfb9233080a4b32636 (patch) | |
tree | 20150c47584fb07e0e9c70cf886237da9e6fa40a /README.md | |
parent | f68ed829e79255109b0cb94300e0c6c4b121ee49 (diff) | |
download | slop-431e56eac151b60a174b04bfb9233080a4b32636.tar.gz |
readme adjustments
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -89,9 +89,9 @@ end Shortcut: ```ruby -Slop.parse :help => true do - ... -end +Slop.new :help => true +# or +Slop.new :help ``` Parsing @@ -103,7 +103,7 @@ Slop's pretty good at parsing, let's take a look at what it'll extract for you Slop.parse(:multiple_switches => false) do on 's', 'server=' on 'p', 'port=', :as => :integer - on 'username=', :matches => /[^a-zA-Z]+$/ + on 'username=', :matches => /^[a-zA-Z]+$/ on 'password=' end ``` |