diff --git a/src/cligen/command/argument.cr b/src/cligen/command/argument.cr index c602dd1..fe5b18f 100644 --- a/src/cligen/command/argument.cr +++ b/src/cligen/command/argument.cr @@ -15,7 +15,7 @@ module CliGen {% long = "--#{name.downcase}" %} {% end %} {% raise "ERROR : CliGen::Command.argument(#{name}) : You must provide a description" unless description %} - {% raise "ERROR : CliGen::Command.argument(#{name}) : Provided description must be a String" unless description.is_a? StringLiteral %} + {% raise "ERROR : CliGen::Command.argument(#{name}) : Provided description must be a String" unless description.is_a? StringLiteral || description.is_a? StringInterpolation %} {% unless on_match.nil? %} {% puts "DEBUG : #{@type.name}.argument(#{name}) : OnMatch:\n\tid: #{on_match}\n\treturn_type: #{on_match.return_type}\n\tinput_vars: #{on_match.args}" if env("DEBUG")%} {% raise "ERROR : CliGen::Command.argument(#{name}) : Provided on_match must be a Proc" unless on_match.is_a? ProcLiteral %}