register

fun register(type: Class<*>, processor: ArgumentProcessor<*>): ArgumentProcessor.Companion

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

Registers the given map of classes and processors to the processors map

Return

The ArgumentProcessor object

Parameters

map

The map of classes and processors