Skip to content

Conversation

@hoyosjs
Copy link
Member

@hoyosjs hoyosjs commented Mar 6, 2025

We've had --counters for a while, and handling two argument lists (one for counter_list,
and the other one for the launch params) is pretty gnarly with the new version of system.commandline
as dotnet/command-line-api@4b60585 dropped the
flag that enabled this parsing mode.

Since #1770 we've said that the option was hidden, and we'd eventually deprecate it.
This commit removes the counter_list argument from dotnet-counters and we assume that all arguments are
for the launch params.

Fixes #5317

We've had --counters for a while, and handling two argument lists (one for counter_list,
and the other one for the launch params) is pretty gnarly with the new version of system.commandline
as dotnet/command-line-api@4b60585 dropped the
flag that enabled this parsing mode.

Since dotnet#1770 we've said that the option was hidden, and we'd eventually deprecate it.
This commit removes the counter_list argument from dotnet-counters and we assume that all arguments are
for the launch params.
@hoyosjs hoyosjs marked this pull request as ready for review March 7, 2025 00:15
@hoyosjs hoyosjs requested a review from a team as a code owner March 7, 2025 00:15
Copy link
Member

@tommcdon tommcdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@hoyosjs hoyosjs merged commit 8601422 into dotnet:main Mar 7, 2025
20 checks passed
@hoyosjs hoyosjs deleted the juhoyosa/remove-counter-list-arg branch March 7, 2025 00:39
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the counter_list option from dotnet-counters in favor of --counters option

2 participants