mirror of
https://github.com/SabreTools/SabreTools.CommandLine.git
synced 2026-07-09 02:07:42 +00:00
Add single-string variants to CommandSet construction
This commit is contained in:
@@ -46,6 +46,15 @@ namespace SabreTools.CommandLine
|
||||
/// </summary>
|
||||
public CommandSet() { }
|
||||
|
||||
/// <summary>
|
||||
/// Create a new CommandSet with a printable header
|
||||
/// </summary>
|
||||
/// <param name="header">Custom commandline header to be printed when outputting help</param>
|
||||
public CommandSet(string header)
|
||||
{
|
||||
_header.Add(header);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new CommandSet with a printable header
|
||||
/// </summary>
|
||||
@@ -55,6 +64,17 @@ namespace SabreTools.CommandLine
|
||||
_header.AddRange(header);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new CommandSet with a printable header
|
||||
/// </summary>
|
||||
/// <param name="header">Custom commandline header to be printed when outputting help</param>
|
||||
/// <param name="footer">Custom commandline footer to be printed when outputting help</param>
|
||||
public CommandSet(string header, string footer)
|
||||
{
|
||||
_header.Add(header);
|
||||
_footer.Add(footer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a new CommandSet with a printable header
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user