Skip to content
Snippets Groups Projects
Commit 5a378b0f authored by dgelessus's avatar dgelessus
Browse files

Add initial implementation of new command argument parsing

The command arguments are now parsed before Command.run is called,
based on a description of the parameter structure that must be provided
by each command.

For now, only "single" and "remainder" parameters are supported (both
required and optional). There is no native support for repeated
parameters yet.

The parsed argument values can be read by the command implementations
in a type-safe way. For example, a required parameter is returned as a
String and an optional parameter as an Optional<String>, and there are
no generic Object return values that need to be manually casted first.
parent e7ea5de7
No related branches found
No related tags found
Loading
Showing
with 446 additions and 56 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment