Skip to content

dotnet tools shouldn't error if no arguments are provided #510

Closed

Description

@davidfowl

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.

Activity

  1. added
    enhancement
    good first issue
    on Sep 30, 2019
  2. noahfalk commented on Oct 1, 2019

    @noahfalk
    Member
  3. added this to the 5.0 milestone on Oct 1, 2019
  4. self-assigned this
    on Oct 1, 2019
  5. sywhang commented on Oct 3, 2019

    @sywhang
    Contributor

    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.

  6. modified the milestones: 5.0, 6.0 on Dec 18, 2020
  7. modified the milestones: 6.0.0, 7.0.0 on Jun 21, 2021
  8. removed their assignment
    on Nov 8, 2021
  9. modified the milestones: 7.0.0, 8.0.0 on Sep 12, 2022
  10. modified the milestones: 8.0.0, 10.0.0 on Aug 21, 2025
  11. added a commit that references this issue on Feb 19, 2026
    e65290e
  12. added a commit that references this issue on Oct 23, 2026
    8575f74
  13. locked and limited conversation to collaborators on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnostic global toolingenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions