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

Add a flag system #7

Open
saiintbrisson opened this issue Feb 15, 2021 · 0 comments
Open

Add a flag system #7

saiintbrisson opened this issue Feb 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@saiintbrisson
Copy link
Owner

saiintbrisson commented Feb 15, 2021

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() {...}
@mluizaa00 mluizaa00 added the enhancement New feature or request label Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants