Skip to content

Commit

Permalink
Remove redundant explain settings ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfool authored and patriksvensson committed Apr 27, 2024
1 parent 5d4b2c8 commit b1b50a2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Spectre.Console.Cli/Internal/Commands/ExplainCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,16 @@ public ExplainCommand(IConfiguration configuration, CommandModel commandModel)

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)
Expand Down

0 comments on commit b1b50a2

Please sign in to comment.