Create a CommandOption that is required #1568
-
How do I set |
Beta Was this translation helpful? Give feedback.
Answered by
patriksvensson
Jun 13, 2024
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I misunderstood. All options are optional by default. If you want to enforce an option and make the option required, the best way is to override the
Validate(CommandContext context, TSettings settings)
on either the setting itself or the command.