Skip to content

RootCommand fails in some cases #71

@dotnetKyle

Description

@dotnetKyle

RootCommand fails to execute.

In my case where I have three commands, 1 is a RootHandler using the [RootHandler] attribute; the rest are typical commands using [Handler("commandName")]. The RootHandler has two string arguments.

This launchsettings.json should result in calling the root command.

// launchsettings.json
{
  "profiles": {
    "ProfileName": {
      "commandName": "Project",
      "commandLineArgs": "arg1 arg2"
    }
  }
}

However I get an error instead.

Error Message:

Required command was not provided.

Description:
  <This prints the description for the root command, leading me to believe that it's at least attempting the root command>

Then it lists the commands...
Commands:
  command2
  command3

However it leaves out the root command from the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PriorityThis issue is a priority and should be worked on sooner rather than laterbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions