Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Tools/dotnet-counters/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ private static Option ExportFileNameOption() =>
private static Option CounterOption() =>
new Option(
alias: "--counters",
description: "List of counter providers.")
description: "A comma-separated list of counter providers. Counter providers can be specified provider_name[:counter_name]. If the provider_name is used without a qualifying counter_name then all counters will be shown. To discover provider and counter names, use the list command.")
{
Argument = new Argument<string>(name: "counters", getDefaultValue: () => "System.Runtime")
};

private static Argument CounterList() =>
new Argument<List<string>>(name: "counter_list", getDefaultValue: () => new List<string>() )
new Argument<List<string>>(name: "counter_list", getDefaultValue: () => new List<string>())

Choose a reason for hiding this comment

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

The getDefaultValue shouldn't be necessary here.

{
Description = @"A space separated list of counters. Counters can be specified provider_name[:counter_name]. If the provider_name is used without a qualifying counter_name then all counters will be shown. To discover provider and counter names, use the list command.",
Arity = ArgumentArity.ZeroOrMore
IsHidden = true
};

private static Command ListCommand() =>
Expand Down