Skip to content

Path completion overrides subparser completion #67

@Simon-1-1

Description

@Simon-1-1

My application has a subparser called "build" and the application is generally used inside a directory that contains another directory named "build". I want the subparser to be completed right after the application, like this:

my_app bui
<tab>
my_app build

but instead, I get:

my_app bui
<tab>
my_app build/

That is, there's an unwanted slash at the end, as if it tries to complete the directory. I haven't added shtab.FILE or shab.DIR to the base parser

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions