Skip to content

Follow GNU CLI conventions for options: e.g. accept -T=4 and -T4 not just -T 4 #35

Description

@corneliusroemer

I've noticed that the CLI interface doesn't allow common patterns used by most CLI tools, concretely: "don't require args to be passed after whitespace, also accept after = and when being a short arg allow them directly (-T4 is same as -T 4)

Right now I get this:

$ ./cmaple -T4
Invalid "-T4" option.
$ ./cmaple -T=4
Invalid "-T=4" option.

This is a great guide for making nice CLIs: https://clig.dev/#arguments-and-flags

Some concrete libraries you could use:

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