/** * Find an command option by its name, this will look through the command hierarchy. * * @param name the option name * @return the option or null */ public final OptionDescriptor findOption(String name) { OptionDescriptor option = getOption(name); if (option == null) { CommandDescriptor<T> owner = getOwner(); if (owner != null) { option = owner.findOption(name); } } return option; }
OptionDescriptor desc = req.command.findOption(literal.getValue()); if (desc != null) { req.tokenizer.next(); desc = m.findOption(literal.getValue()); if (desc != null) { response.command = m;