Removed 'long' from macro expression

This commit is contained in:
Tristan Ancelet
2026-08-14 14:18:02 -05:00
parent fd510469ac
commit 8780be3a42
+2 -2
View File
@@ -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}},