Skip to content

Persistent flags do not work on root level for aliases #12697

@rsteube

Description

@rsteube

Version

d344fbb

Operating System

Linux

Distribution Method

Describe the issue

Aliases are not recognized as commands when flags are used on root level.

How to reproduce (Optional)

but status --json # works
but st --json # works
but --json status # works
but --json st # fails

Expected behavior (Optional)

No response

Relevant log output (Optional)

Error: "but st" is not a command. Type "but --help" to see all available commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIThe command-line program `but`bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions