File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -59,18 +59,15 @@ class OptionParser
59
59
protected property flags : Array (String )
60
60
protected property handlers : Array (Handler )
61
61
protected property unknown_args
62
- protected property! missing_option
63
- protected property! invalid_option
62
+ protected property missing_option
63
+ protected property invalid_option
64
64
65
65
# Creates a new parser.
66
66
def initialize
67
67
@flags = [] of String
68
68
@handlers = [] of Handler
69
- missing_option { |flag | raise MissingOption .new(flag) }
70
- invalid_option { |flag | raise InvalidOption .new(flag) }
71
- # TODO: switch to these and change property! to property above after 0.19.0
72
- # @missing_option = ->(option : String) { raise MissingOption.new(option) }
73
- # @invalid_option = ->(option : String) { raise InvalidOption.new(option) }
69
+ @missing_option = - > (option : String ) { raise MissingOption .new(option) }
70
+ @invalid_option = - > (option : String ) { raise InvalidOption .new(option) }
74
71
end
75
72
76
73
# Creates a new parser, with its configuration specified in the block.
You can’t perform that action at this time.
0 commit comments