Removed 'long' from macro expression
This commit is contained in:
+2
-2
@@ -68,11 +68,11 @@ module CliGen
|
|||||||
@format : ::Regex? = nil
|
@format : ::Regex? = nil
|
||||||
)
|
)
|
||||||
{% unless T.has_method? :to_s %}
|
{% unless T.has_method? :to_s %}
|
||||||
{% raise "ERROR : Flag({{T}}, long: #{long}) : Error your flag type must have a to_s method" %}
|
{% raise "ERROR : Flag({{T}}) : Error your flag type must have a to_s method" %}
|
||||||
{% end %}
|
{% end %}
|
||||||
{% if T <= Array %}
|
{% if T <= Array %}
|
||||||
{% elem = T.type_vars.first %}
|
{% elem = T.type_vars.first %}
|
||||||
{% raise "ERROR : Flag({{T}}, long: #{long}) : Error your flag subtype must have a to_s method" unless elem.has_method? :to_s %}
|
{% raise "ERROR : Flag({{T}}) : Error your flag subtype must have a to_s method" unless elem.has_method? :to_s %}
|
||||||
{% end %}
|
{% end %}
|
||||||
meta = FlagMeta.new(
|
meta = FlagMeta.new(
|
||||||
type: {{T.stringify}},
|
type: {{T.stringify}},
|
||||||
|
|||||||
Reference in New Issue
Block a user