From 4a0dcb8b59d688a67ab65d6516d4498d5212a9bc Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Fri, 14 Aug 2026 14:19:38 -0500 Subject: [PATCH] Had to fix expression to show type as {{...}} isn't expanded in macro expression betweeh {% ... %} --- src/cligen/flag.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cligen/flag.cr b/src/cligen/flag.cr index 9c1fc9b..e9fee6f 100644 --- a/src/cligen/flag.cr +++ b/src/cligen/flag.cr @@ -68,11 +68,11 @@ module CliGen @format : ::Regex? = nil ) {% unless T.has_method? :to_s %} - {% raise "ERROR : Flag({{T}}) : 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 %} {% if T <= Array %} {% elem = T.type_vars.first %} - {% raise "ERROR : Flag({{T}}) : 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 %} meta = FlagMeta.new( type: {{T.stringify}},