Got Array(T) working in flag.cr. Hacky stuff it is to convince the compiler that a value isn't going to be nil if I set it

This commit is contained in:
Tristan Ancelet
2026-08-10 12:57:31 -05:00
parent ac5711c0df
commit 29327a3e83
17 changed files with 177 additions and 64 deletions
+6
View File
@@ -1,3 +1,4 @@
require "./cligen/coercable"
require "./cligen/parsable"
require "./cligen/annotations"
require "./cligen/format"
@@ -10,6 +11,11 @@ require "./cligen/app"
module CliGen
VERSION = "0.1.0"
macro override_help_template(filepath)
{% raise "ERROR : CliGen.override_help_template : File(#{filepath}) doesn't exist" unless file_exists?(filepath) %}
CliGen::HELP_OVERRIDE_TEMPLATE = {{`readlink -f #{filepath}`.strip.stringify}}
end
APPNAME = File.basename(PROGRAM_NAME)
record AdditionalDefaultFlag,