From e6d9306e69110112b8c1c0638219dc73e3f4dcb1 Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Wed, 12 Aug 2026 13:10:30 -0500 Subject: [PATCH] Added exit & default to help if no main is specified --- src/cligen/command_node.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cligen/command_node.cr b/src/cligen/command_node.cr index 7d832d2..701b29d 100644 --- a/src/cligen/command_node.cr +++ b/src/cligen/command_node.cr @@ -268,7 +268,7 @@ module CliGen {% end %} end {% else %} - puts self.as(Nil).help + puts help exit 0 {% end %} end