Moved getOptions to BaseCommand.