Skip to content

Apply help to all symbols in the CLI declaration #2442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main-powderhouse
Choose a base branch
from
Prev Previous commit
Next Next commit
Removed code comment
  • Loading branch information
Michał Haśnik committed Jun 13, 2024
commit 240817350b55a9734c0e3d46d1465777c03c8c5b
3 changes: 0 additions & 3 deletions src/System.CommandLine.Subsystems/HelpSubsystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ protected internal override void Initialize(InitializationContext context)
{
AddOptionRecursively(context.Configuration.RootCommand, HelpOption);

// I imagine this method should belong to CliCommand
// or some extensions method, but I didn't want to change
// too much in this PR without consulting you first
static void AddOptionRecursively(CliCommand command, CliOption option)
{
command.Add(option);
Expand Down