fix for boolean flag at end

This commit is contained in:
Chris Watson 2023-01-28 14:37:38 -07:00
parent ef7a9f76dc
commit e6f7413674
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ module ArgParser
arg = %args.shift arg = %args.shift
next unless key = parse_key(arg) 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) if value && parse_key(value)
%args.unshift(value) %args.unshift(value)
value = "true" value = "true"