Skip to content

Add support for completing short flags (-x) #127

@chriswalz

Description

@chriswalz

I have a setup like so:

Flags: map[string]complete.Predictor{
  "o": predict.Nothing,
  "upload-pack": predict.Nothing,
  ...
}

Now when I type a command like <cmd> -- [TAB] I see the below

Screen Shot 2020-10-05 at 12 15 48 AM

I would expect to only see the long flags

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions