/** @deprecated Unstable API */ @Deprecated @UnstableAPI public CommandHelp getCommandHelp() { return manager.generateCommandHelp(); }
/** @deprecated Unstable API */ @Deprecated @UnstableAPI public CommandHelp generateCommandHelp(CommandIssuer issuer, @NotNull String command) { verifyUnstableAPI("help"); return generateCommandHelp(issuer, obtainRootCommand(command)); }
/** @deprecated Unstable API */ @Deprecated @UnstableAPI public CommandHelp generateCommandHelp(@NotNull String command) { verifyUnstableAPI("help"); CommandOperationContext context = getCurrentCommandOperationContext(); if (context == null) { throw new IllegalStateException("This method can only be called as part of a command execution."); } return generateCommandHelp(context.getCommandIssuer(), command); }
/** @deprecated Unstable API */ @Deprecated @UnstableAPI public CommandHelp generateCommandHelp() { verifyUnstableAPI("help"); CommandOperationContext context = getCurrentCommandOperationContext(); if (context == null) { throw new IllegalStateException("This method can only be called as part of a command execution."); } String commandLabel = context.getCommandLabel(); return generateCommandHelp(context.getCommandIssuer(), this.obtainRootCommand(commandLabel)); }
CommandHelp commandHelp = manager.generateCommandHelp(); if (showHelp.search) { commandHelp.setSearch(showHelp.searchArgs == null ? args : showHelp.searchArgs);
search = c.getArgs(); CommandHelp commandHelp = manager.generateCommandHelp(); commandHelp.setPage(page); Integer perPage = c.getFlagValue("perpage", (Integer) null);