Fixed something maybe
This commit is contained in:
Binary file not shown.
@@ -41,7 +41,7 @@ module CliGen
|
|||||||
{% format = format.resolve if format.is_a? Path %}
|
{% 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 %}
|
{% raise "ERROR : CliGen::Command.argument(#{name}) : Provided format must be a RegexLiteral" unless format.is_a? RegexLiteral %}
|
||||||
{% end %}
|
{% end %}
|
||||||
{% if type.resolve <= Array && format.nil? %}
|
{% if type.resolve <= Array %}
|
||||||
{% elem = type.type_vars.first %}
|
{% elem = type.type_vars.first %}
|
||||||
{% unless elem == Int32 %}
|
{% unless elem == Int32 %}
|
||||||
{% if format.nil? && options.nil? %}
|
{% if format.nil? && options.nil? %}
|
||||||
|
|||||||
Reference in New Issue
Block a user