-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
@CommandDefinition(name = "get", description = "\n") public class GetOntologyCommand extends AbstractOntologyCommand { ... @Option(shortName = 'h', name = "help", hasValue = false, required = false, overrideRequired = true, description = "Display help") private boolean help;
@GroupCommandDefinition(name = "ontology", description = "", groupCommands = {GetOntologyCommand.class, ...}) public static class OntologyCommands implements Command { @Override public CommandResult execute(CommandInvocation commandInvocation) throws IOException, InterruptedException { return CommandResult.SUCCESS; } }
commandInvocation.getShell().out().println(commandInvocation.getHelpInfo("get"));
That prints out an empty line when --help is used. Note that "ontology get <TAB> does successfully print out all the options.