Creates new HelpException without detail message.
HelpException
Creates new HelpException with the command name to display the help command = commandName;
command = commandName;
if (args.length<2) { command = null; } else { //help, help --shell, help command --shell int next = 1; if(!args[next].startsWith("--")) command = args[next++]; if(args.length>next && args[next].equals("--shell")) isShell = true; }
Returns the command to display the help. return command;
return command;
Returns the help class to invoke. //read CLI descriptor final CLIDescriptorsReader cliDescriptorsReader = CLIDescriptorsReader.getInstance(); return cliDescriptorsReader.getHelpClass();
//read CLI descriptor final CLIDescriptorsReader cliDescriptorsReader = CLIDescriptorsReader.getInstance(); return cliDescriptorsReader.getHelpClass();
Returns the usage text of the command. try { //read CLI descriptor final CLIDescriptorsReader cliDescriptorsReader = CLIDescriptorsReader.getInstance(); //get the validCommand object from CLI descriptor final ValidCommand validCommand = cliDescriptorsReader.getCommand(command); return validCommand.getUsageText(); } catch (Exception e) { return null; }
try { //read CLI descriptor final CLIDescriptorsReader cliDescriptorsReader = CLIDescriptorsReader.getInstance(); //get the validCommand object from CLI descriptor final ValidCommand validCommand = cliDescriptorsReader.getCommand(command); return validCommand.getUsageText(); } catch (Exception e) { return null; }
return isShell;