Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.
This repository was archived by the owner on May 11, 2024. It is now read-only.

Add a flag system #7

Description

@saiintbrisson

Flags will follow the same logic as flags in CLI programs, prefixed with -- or - for the shorthand.

Example usage:
/mute SaiintBrisson -s --color=RED

I'm thinking of creating a new annotation called @Flag, scoped for methods, like the @Command annotation.
Defining it will be something along those lines:

@Command(name = "foo")
@Flag(name = "bar", shorthand = 'b', acceptsValue = true, type = ChatColor.class)
@Flag(name = "baz", shorthand = 'z')
public void onCommand() {...}

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions