Interface FlagExtractor<S extends Source>
- Type Parameters:
S- the type of the command source
A class that extracts flags from a single string/argument.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends Source>
FlagExtractor<S>createNative(CommandUsage<S> usage) Extracts all flags used from a single string with no spaces.voidinsertFlag(FlagData<S> flagData) Inserts a flag during into the trie.
-
Method Details
-
insertFlag
Inserts a flag during into the trie. May be useful if it's necessary to insert a flag during runtime.- Parameters:
flagData- theFlagDatato insert
-
extract
Extracts all flags used from a single string with no spaces.- Parameters:
rawInput- the raw input of an argumentctx-- Returns:
- the extracted
FlagDatafor flags. - Throws:
UnknownFlagException
-
createNative
-