summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-11-07 19:05:46 -0800
committerLee Jarvis <lee@jarvis.co>2011-11-07 19:05:46 -0800
commit431e56eac151b60a174b04bfb9233080a4b32636 (patch)
tree20150c47584fb07e0e9c70cf886237da9e6fa40a /README.md
parentf68ed829e79255109b0cb94300e0c6c4b121ee49 (diff)
downloadslop-431e56eac151b60a174b04bfb9233080a4b32636.tar.gz
readme adjustments
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0e055e3..7d00047 100644
--- a/README.md
+++ b/README.md
@@ -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
```