Skip to content

Abbreviate command names #3

Open

Description

@bracke

Hi

I would like to offer both a full command name and an abbreviated/short command name to the user.
E.g.

Fullname: new
Short: n

Fullname: generate
Short: g

Is this possible without creating the same command twice?

Kind regards
Bent Bracke

Activity

  1. changed the title [-]Abbreviate commandnames[/-] [+]Abbreviate command names[/+] on Sep 5, 2021
  2. Fabien-Chouteau commented on Sep 6, 2021

    @Fabien-Chouteau
    Member

    Hi @bracke, it's not possible with the current implementation. But it could be done.

  3. Fabien-Chouteau commented on Sep 7, 2021

    @Fabien-Chouteau
    Member

    Note that I am working on an alias feature that would achieve similar results.

  4. mosteo commented on Sep 7, 2021

    @mosteo
    Member

    Some other cli utilities accept any prefix that's unambiguous. Perhaps that is more general than manually defining aliases?

  5. bracke commented on Sep 10, 2021

    @bracke
    Author

    Perhaps that is more general than manually defining aliases?

    Sure, but something would have to be picked for the help & man page?

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

    Fields

    Area

    None yet

    OS

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions