fix for boolean flag at end
This commit is contained in:
parent
ef7a9f76dc
commit
e6f7413674
|
@ -67,7 +67,8 @@ module ArgParser
|
|||
arg = %args.shift
|
||||
next unless key = parse_key(arg)
|
||||
|
||||
value = %args.shift rescue nil
|
||||
# TODO: Find a different way to handle this
|
||||
value = %args.shift rescue "true"
|
||||
if value && parse_key(value)
|
||||
%args.unshift(value)
|
||||
value = "true"
|
||||
|
|
Loading…
Reference in New Issue