From 94ac68e5a0c68ed5a2c9ada097f9d49f17702a9a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 6 Oct 2025 07:19:23 -0400 Subject: [PATCH] Handle default help functionality --- SabreTools.CommandLine/CommandSet.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SabreTools.CommandLine/CommandSet.cs b/SabreTools.CommandLine/CommandSet.cs index 7b2fb42..1230bc0 100644 --- a/SabreTools.CommandLine/CommandSet.cs +++ b/SabreTools.CommandLine/CommandSet.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using SabreTools.CommandLine.Features; using SabreTools.CommandLine.Inputs; namespace SabreTools.CommandLine @@ -906,6 +907,18 @@ namespace SabreTools.CommandLine return false; } + // Handle default help functionality + if (topLevel is Help helpFeature) + { + helpFeature.ProcessArgs(args, 0, this); + return true; + } + else if (topLevel is HelpExtended helpExtFeature) + { + helpExtFeature.ProcessArgs(args, 0, this); + return true; + } + // Now verify that all other flags are valid if (!feature.ProcessArgs(args, 1)) {