You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dotnet tools shouldn't error if no arguments are provided #510
Just print the help and drop the "Required command was not provided." .e.g
root@004561cfab39:/# dotnet counters
Required command was not provided.
Usage:
dotnet-counters [options] [command]
Options:
--version Display version information
Commands:
monitor <counter_list> Start monitoring a .NET application
list Display a list of counter names and descriptions, grouped by provider.
list-processes Display a list of dotnet processes that can be monitored.
That message is being thrown from inside System.CommandLine. I did a little bit of digging and it seems like there is no way to change that behavior with the way we are currently using it (via the CommandLineBuilder API) - I filed dotnet/command-line-api#653 to track that. If there is a relatively easy workaround I will follow that to address this on all the dotnet diagnostics tools. Otherwise I'll have to fix it on System.CommandLine, then update our dependency (which @hoyosjs / @josalem said was not trivial? - Correct me if I'm wrong) and then fix it on our side.
Activity
noahfalk commentedon Oct 1, 2019
cc @sywhang
sywhang commentedon Oct 3, 2019
That message is being thrown from inside System.CommandLine. I did a little bit of digging and it seems like there is no way to change that behavior with the way we are currently using it (via the
CommandLineBuilderAPI) - I filed dotnet/command-line-api#653 to track that. If there is a relatively easy workaround I will follow that to address this on all the dotnet diagnostics tools. Otherwise I'll have to fix it on System.CommandLine, then update our dependency (which @hoyosjs / @josalem said was not trivial? - Correct me if I'm wrong) and then fix it on our side.Show help instead of error when no subcommand provided
Print help when a diagnostics tool is run without a command (dotnet#6132