From a0576df3eee718ccd47351e035aa15a910c9bd33 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 5 Oct 2025 22:41:18 -0400 Subject: [PATCH] Add single-string variants to CommandSet construction --- SabreTools.CommandLine/CommandSet.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/SabreTools.CommandLine/CommandSet.cs b/SabreTools.CommandLine/CommandSet.cs index 5f74713..feb2222 100644 --- a/SabreTools.CommandLine/CommandSet.cs +++ b/SabreTools.CommandLine/CommandSet.cs @@ -46,6 +46,15 @@ namespace SabreTools.CommandLine /// public CommandSet() { } + /// + /// Create a new CommandSet with a printable header + /// + /// Custom commandline header to be printed when outputting help + public CommandSet(string header) + { + _header.Add(header); + } + /// /// Create a new CommandSet with a printable header /// @@ -55,6 +64,17 @@ namespace SabreTools.CommandLine _header.AddRange(header); } + /// + /// Create a new CommandSet with a printable header + /// + /// Custom commandline header to be printed when outputting help + /// Custom commandline footer to be printed when outputting help + public CommandSet(string header, string footer) + { + _header.Add(header); + _footer.Add(footer); + } + /// /// Create a new CommandSet with a printable header ///