summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7e8223a..cc0e956 100644
--- a/README.md
+++ b/README.md
@@ -135,9 +135,11 @@ opts = Slop.parse do |o|
o.array '--files', 'a list of files', delimiter: ','
end
-# both of these will return o[:files] as ["foo.txt", "bar.rb"]:
+# Both of these will return o[:files] as ["foo.txt", "bar.rb"]:
# --files foo.txt,bar.rb
# --files foo.txt --files bar.rb
+# This will return o[:files] as []:
+# --files ""
```
If you want to disable the built-in string-splitting, set the delimiter to