addOptionalArgument

protected void addOptionalArgument(String key, ICommandArgument arg)

Register an argument the user may omit. Optional arguments must be trailing — once you call this, every subsequent argument added to this command should also be optional. The framework consumes optional args left-to-right from the user input and reports null from getStringArgument (silently — no "Key not found" feedback) when the user didn't provide a value.