* {@link GenericCommandOption} as the single parameter and always returns null
*/
final Function<CommandOption, Void> command;
- CommandOption arguments;
+ CommandOption arguments = new CommandOption();
/**
*
* {@link GenericCommandOption} as the single parameter and always returns null
*/
final Function<GenericCommandOption<E>, Void> command;
- GenericCommandOption<E> arguments;
+ GenericCommandOption<E> arguments = new GenericCommandOption<E>();
/**
*
break;
}
- command.getCommand().bindArguments(new CommandOption()).exec();
+ Command cmd = command.getCommand();
+ for (int i = 1; i < parts.length; i++) {
+ cmd.bindArguments(String.valueOf(i), parts[1]);
+ }
+ cmd.exec();
}
}
}