Package org.jnode.shell.help

Examples of org.jnode.shell.help.Help.usage()


        CommandLine cmd = commands.get(len - 1).commandLine;
        CommandInfo cmdInfo = cmd.getCommandInfo(shell);
        if (cmdInfo != null) {
            try {
                Help help = HelpFactory.getHelpFactory().getHelp(cmd.getCommandName(), cmdInfo);
                help.usage(pw);
                return true;
            } catch (HelpException ex) {
                LOG.info("Unexpected error while getting help for alias / class '" +
                        cmd.getCommandName() + "': " + ex.getMessage(), ex);
            }
View Full Code Here


        CommandLine cmd = doParseCommandLine(line);
        CommandInfo cmdInfo = cmd.getCommandInfo(shell);
        if (cmdInfo != null) {
            try {
                Help help = HelpFactory.getHelpFactory().getHelp(cmd.getCommandName(), cmdInfo);
                help.usage(pw);
                return true;
            } catch (HelpException ex) {
                LOG.info("Unexpected error while getting help for alias / class '" +
                        cmd.getCommandName() + "': " + ex.getMessage(), ex);
            }
View Full Code Here

                    errPW.println("Command syntax error: " + ex.getMessage());
                }
                if (cmdLine != null) {
                    Help help = HelpFactory.getHelpFactory().getHelp(
                            cmdLine.getCommandName(), cmdLine.getCommandInfo());
                    help.usage(errPW);
                }
            } catch (HelpException e) {
                errPW.println("Exception while trying to get the command usage");
                stackTrace(ex);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.