register
fun register(type: Class<*>, processor: ArgumentProcessor<*>): ArgumentProcessor.Companion
Content copied to clipboard
Registers a new Argument Processor, so it can be used in the command argument parsing
Return
The ArgumentProcessor object
Parameters
type
The type of the argument. Example: String class, Int class, etc.
processor
The class of the argument processor
fun register(map: Map<Class<*>, ArgumentProcessor<*>>): ArgumentProcessor.Companion
Content copied to clipboard
Registers the given map of classes and processors to the processors map
Return
The ArgumentProcessor object
Parameters
map
The map of classes and processors