Skip to content

Conversation

@abhiramch018
Copy link
Contributor

Summary

Fixed the tab-completion example in how-to-enable-tab-completion.md by updating the sample code to use RootCommand instead of Command.

Changes

  • Wrapped the command in a RootCommand.
  • Updated the invocation to use rootCommand.Parse(args).InvokeAsync().
  • Verified that tab-completion and help now work correctly.

Why

Resolves issue #48478 — the original code used .Parse(args).Invoke() on a Command, which prevented tab-completion and help from working as intended.

Summary

Describe your changes here.

Fixes #Issue_Number (if available)

### Summary
Fixed the tab-completion example in `how-to-enable-tab-completion.md` by updating the sample code to use `RootCommand` instead of `Command`.

### Changes
- Wrapped the command in a `RootCommand`.
- Updated the invocation to use `rootCommand.Parse(args).InvokeAsync()`.
- Verified that tab-completion and help now work correctly.

### Why
Resolves issue dotnet#48478 — the original code used `.Parse(args).Invoke()` on a `Command`, which prevented tab-completion and help from working as intended.
@abhiramch018 abhiramch018 requested review from a team and gewarren as code owners November 25, 2025 12:43
@dotnetrepoman dotnetrepoman bot added this to the November 2025 milestone Nov 25, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant