diff --git a/src/Tools/dotnet-gcdump/CommandLine/CollectCommandHandler.cs b/src/Tools/dotnet-gcdump/CommandLine/CollectCommandHandler.cs index f756e4ea21..bfb57f351f 100644 --- a/src/Tools/dotnet-gcdump/CommandLine/CollectCommandHandler.cs +++ b/src/Tools/dotnet-gcdump/CommandLine/CollectCommandHandler.cs @@ -52,7 +52,7 @@ private static async Task Collect(CancellationToken ct, IConsole console, i if (processId == 0) { - Console.Out.WriteLine($"-p|--process-id is required"); + Console.Out.WriteLine("-p|--process-id is required"); return -1; } @@ -95,12 +95,12 @@ private static async Task Collect(CancellationToken ct, IConsole console, i } else if (ct.IsCancellationRequested) { - Console.Out.WriteLine($"\tCancelled."); + Console.Out.WriteLine("\tCancelled."); return -1; } else { - Console.Out.WriteLine($"\tFailed to collect gcdump. Try running with '-v' for more information."); + Console.Out.WriteLine("\tFailed to collect gcdump. Try running with '-v' for more information."); return -1; } } @@ -142,7 +142,7 @@ public static Command CollectCommand() => private static Option ProcessIdOption() => new Option( aliases: new[] { "-p", "--process-id" }, - description: "The process id to collect the gcdump.") + description: "The process id to collect the gcdump from.") { Argument = new Argument(name: "pid", defaultValue: 0), }; @@ -150,7 +150,7 @@ private static Option ProcessIdOption() => private static Option NameOption() => new Option( aliases: new[] { "-n", "--name" }, - description: "The name of the process to collect the gcdump.") + description: "The name of the process to collect the gcdump from.") { Argument = new Argument(name: "name") }; @@ -166,7 +166,7 @@ private static Option OutputPathOption() => private static Option VerboseOption() => new Option( aliases: new[] { "-v", "--verbose" }, - description: $"Output the log while collecting the gcdump.") + description: "Output the log while collecting the gcdump.") { Argument = new Argument(name: "verbose", defaultValue: false) }; diff --git a/src/Tools/dotnet-gcdump/CommandLine/ReportCommandHandler.cs b/src/Tools/dotnet-gcdump/CommandLine/ReportCommandHandler.cs index ae176f2112..e621ed0f20 100644 --- a/src/Tools/dotnet-gcdump/CommandLine/ReportCommandHandler.cs +++ b/src/Tools/dotnet-gcdump/CommandLine/ReportCommandHandler.cs @@ -32,13 +32,13 @@ private static Task Report(CancellationToken ct, IConsole console, FileInfo // if (gcdump_filename == null && !processId.HasValue) { - Console.Error.WriteLine(" or -p|process-id is required"); + Console.Error.WriteLine(" or -p|--process-id is required"); return Task.FromResult(-1); } if (gcdump_filename != null && processId.HasValue) { - Console.Error.WriteLine("Specify only one of -f|--file or -p|process-id."); + Console.Error.WriteLine("Specify only one of -f|--file or -p|--process-id."); return Task.FromResult(-1); } @@ -109,7 +109,7 @@ private static Argument FileNameArgument() => }.ExistingOnly(); private static Option ProcessIdOption() => - new Option(new[] { "-p", "--process-id" }, "The process id to collect the trace."); + new Option(new[] { "-p", "--process-id" }, "The process id to collect the gcdump from."); private static Option ReportTypeOption() => new Option(new[] { "-t", "--report-type" }, "The type of report to generate. Available options: heapstat (default)") diff --git a/src/Tools/dotnet-gcdump/Program.cs b/src/Tools/dotnet-gcdump/Program.cs index 06bb2bbc69..d33868baf5 100644 --- a/src/Tools/dotnet-gcdump/Program.cs +++ b/src/Tools/dotnet-gcdump/Program.cs @@ -15,7 +15,7 @@ public static Task Main(string[] args) { var parser = new CommandLineBuilder() .AddCommand(CollectCommandHandler.CollectCommand()) - .AddCommand(ProcessStatusCommandHandler.ProcessStatusCommand("Lists the dotnet processes that gcdumps can be collected")) + .AddCommand(ProcessStatusCommandHandler.ProcessStatusCommand("Lists the dotnet processes that gcdumps can be collected from")) .AddCommand(ReportCommandHandler.ReportCommand()) .UseDefaults() .Build();