Remove redundant explain settings ctor

This commit is contained in:
Sean Fausett 2024-04-27 09:24:09 +12:00 committed by Patrik Svensson
parent 5d4b2c88e5
commit b1b50a21f7

View File

@ -15,23 +15,16 @@ internal sealed class ExplainCommand : Command<ExplainCommand.Settings>
public sealed class Settings : CommandSettings
{
public Settings(string[]? commands, bool? detailed, bool includeHidden)
{
Commands = commands;
Detailed = detailed;
IncludeHidden = includeHidden;
}
[CommandArgument(0, "[command]")]
public string[]? Commands { get; }
public string[]? Commands { get; set; }
[Description("Include detailed information about the commands.")]
[CommandOption("-d|--detailed")]
public bool? Detailed { get; }
public bool? Detailed { get; set; }
[Description("Include hidden commands and options.")]
[CommandOption("--hidden")]
public bool IncludeHidden { get; }
public bool IncludeHidden { get; set; }
}
public override int Execute(CommandContext context, Settings settings)