summaryrefslogtreecommitdiff
path: root/lib/slop.rb
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-06-16 09:42:31 +0100
committerLee Jarvis <ljjarvis@gmail.com>2013-08-13 20:34:43 +0100
commit6e41cbac607029ef6739da3a7b6c39036fd4ac6c (patch)
tree876f71ec13a49a43d6df53b7e228cec12ae415ae /lib/slop.rb
parent7d62cc1b72e19b965fd313f2712db2fa4853fb33 (diff)
downloadslop-6e41cbac607029ef6739da3a7b6c39036fd4ac6c.tar.gz
Slop is now strict by default, and adds --help by default
Also use 1.9 hash syntax
Diffstat (limited to 'lib/slop.rb')
-rw-r--r--lib/slop.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/slop.rb b/lib/slop.rb
index 23163da..7865f87 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -8,15 +8,15 @@ class Slop
# Returns a default Hash of configuration options this Slop instance uses.
DEFAULT_OPTIONS = {
- :strict => false,
- :help => false,
- :banner => nil,
- :ignore_case => false,
- :autocreate => false,
- :arguments => false,
- :optional_arguments => false,
- :multiple_switches => true,
- :longest_flag => 0
+ strict: true,
+ help: true,
+ banner: nil,
+ autocreate: false,
+ arguments: false,
+ optional_arguments: false,
+ ignore_case: false,
+ multiple_switches: true,
+ longest_flag: 0
}
class << self