summaryrefslogtreecommitdiff
path: root/lib/slop/error.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/slop/error.rb')
-rw-r--r--lib/slop/error.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/slop/error.rb b/lib/slop/error.rb
index d942bbd..74453e3 100644
--- a/lib/slop/error.rb
+++ b/lib/slop/error.rb
@@ -12,15 +12,13 @@ module Slop
# executed without one. Suppress with the `suppress_errors`
# config option.
class MissingArgument < Error
- def initialize(msg, argument)
- super(msg)
- @argument = argument
- end
+ attr_reader :flags;
- #Get all the flags that matches
- #the option with the missing argument
- def getFlags()
- return @argument
+ # Get all the flags that matches
+ # the option with the missing argument
+ def initialize(msg, flags)
+ super(msg)
+ @flags = flags
end
end