Skip to content

CommandAlias conflicts with parent CommandAlias #82

Description

@WeihanLi

Got exception when the subcommand has same short command alias as parent command.

similar command structure

[CliCommand(Name = "bitbucket", Description = "Bitbucket related")]
public class BitbucketCommand
{
    [CliCommand(Name = "build", Description = "Trigger pipeline build for component")]
    public class BuildCommand
}    

error message

 System.Exception: CommandAlias "b" for "BuildCommand" conflicts with parent CommandAlias for "BitbucketCommand"

Since they're in different level, should be acceptable? If not, could we validate on build so that we could got error reported before publishing

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions