mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
Remove redundant explain settings ctor
This commit is contained in:
parent
5d4b2c88e5
commit
b1b50a21f7
@ -15,23 +15,16 @@ internal sealed class ExplainCommand : Command<ExplainCommand.Settings>
|
|||||||
|
|
||||||
public sealed class Settings : CommandSettings
|
public sealed class Settings : CommandSettings
|
||||||
{
|
{
|
||||||
public Settings(string[]? commands, bool? detailed, bool includeHidden)
|
|
||||||
{
|
|
||||||
Commands = commands;
|
|
||||||
Detailed = detailed;
|
|
||||||
IncludeHidden = includeHidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
[CommandArgument(0, "[command]")]
|
[CommandArgument(0, "[command]")]
|
||||||
public string[]? Commands { get; }
|
public string[]? Commands { get; set; }
|
||||||
|
|
||||||
[Description("Include detailed information about the commands.")]
|
[Description("Include detailed information about the commands.")]
|
||||||
[CommandOption("-d|--detailed")]
|
[CommandOption("-d|--detailed")]
|
||||||
public bool? Detailed { get; }
|
public bool? Detailed { get; set; }
|
||||||
|
|
||||||
[Description("Include hidden commands and options.")]
|
[Description("Include hidden commands and options.")]
|
||||||
[CommandOption("--hidden")]
|
[CommandOption("--hidden")]
|
||||||
public bool IncludeHidden { get; }
|
public bool IncludeHidden { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Execute(CommandContext context, Settings settings)
|
public override int Execute(CommandContext context, Settings settings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user