diff --git a/src/cligen/command/.argument.cr.swp b/src/cligen/command/.argument.cr.swp new file mode 100644 index 0000000..a1f9328 Binary files /dev/null and b/src/cligen/command/.argument.cr.swp differ diff --git a/src/cligen/command/argument.cr b/src/cligen/command/argument.cr index 43252db..2b00492 100644 --- a/src/cligen/command/argument.cr +++ b/src/cligen/command/argument.cr @@ -41,7 +41,7 @@ module CliGen {% format = format.resolve if format.is_a? Path %} {% raise "ERROR : CliGen::Command.argument(#{name}) : Provided format must be a RegexLiteral" unless format.is_a? RegexLiteral %} {% end %} - {% if type.resolve <= Array && format.nil? %} + {% if type.resolve <= Array %} {% elem = type.type_vars.first %} {% unless elem == Int32 %} {% if format.nil? && options.nil? %}