protected void specificHelp(IsInfoSetFT info, String toHelp){
		if(this.skbShell.getCommandMap().containsKey(toHelp)){
			//we have a command to show help for, collect all information and present help

			SkbShellCommand ssc = this.skbShell.getCommandMap().get(toHelp).getCommands().get(toHelp);
			TreeMap<String, SkbShellArgument> args = new TreeMap<>();
			if(ssc.getArguments()!=null){
				for(SkbShellArgument ssa : ssc.getArguments()){
					if(ssa.isOptional()){
						args.put("[" + ssa.getKey() + "]", ssa);
					}
					else{
						args.put("<" + ssa.getKey() + ">", ssa);
					}
				}
			}

			info.addInfo("{} {} -- {}", ssc.getCommand(), new StrBuilder().appendWithSeparators(args.keySet(), ", "), ssc.getDescription());
			for(SkbShellArgument ssa : args.values()){
				if(ssa.valueSet()!=null && ssa.addedHelp()!=null){
					info.addInfo(" -- <{}> of type {} - {} - {} - value set {}", ssa.getKey(), ssa.getType().name(), ssa.getDescription(), ssa.addedHelp(), ArrayUtils.toString(ssa.valueSet()));
				}
				else if(ssa.valueSet()!=null && ssa.addedHelp()==null){
					info.addInfo(" -- <{}> of type {} - {} - value set {}", ssa.getKey(), ssa.getType().name(), ssa.getDescription(), ArrayUtils.toString(ssa.valueSet()));
				}
				else if(ssa.valueSet()==null && ssa.addedHelp()!=null){
					info.addInfo(" -- <{}> of type {} - {} - {}", ssa.getKey(), ssa.getType().name(), ssa.getDescription(), ssa.addedHelp());
				}
				else{
					info.addInfo(" -- <{}> of type {} - {}", ssa.getKey(), ssa.getType().name(), ssa.getDescription());
				}
			}
			if(ssc.addedHelp()!=null){
				info.addInfo("{}", ssc.addedHelp());
			}
		}
		else{
			info.addInfo("");
			info.addInfo("{}: no command {} found for help, try 'help' to see all available commands", new Object[]{this.skbShell.getPromptName(), toHelp});
		}
	}
protected void specificHelp ( IsInfoSetFT info , String toHelp ) { if ( this . skbShell . getCommandMap ( ) . containsKey ( toHelp ) ) { SkbShellCommand ssc = this . skbShell . getCommandMap ( ) . get ( toHelp ) . getCommands ( ) . get ( toHelp ) ; TreeMap < String , SkbShellArgument > args = new TreeMap < > ( ) ; if ( ssc . getArguments ( ) != null ) { for ( SkbShellArgument ssa : ssc . getArguments ( ) ) { if ( ssa . isOptional ( ) ) { args . put ( "[" + ssa . getKey ( ) + "]" , ssa ) ; } else { args . put ( "<" + ssa . getKey ( ) + ">" , ssa ) ; } } } info . addInfo ( "{} {} -- {}" , ssc . getCommand ( ) , new StrBuilder ( ) . appendWithSeparators ( args . keySet ( ) , ", " ) , ssc . getDescription ( ) ) ; for ( SkbShellArgument ssa : args . values ( ) ) { if ( ssa . valueSet ( ) != null && ssa . addedHelp ( ) != null ) { info . addInfo ( " -- <{}> of type {} - {} - {} - value set {}" , ssa . getKey ( ) , ssa . getType ( ) . name ( ) , ssa . getDescription ( ) , ssa . addedHelp ( ) , ArrayUtils . toString ( ssa . valueSet ( ) ) ) ; } else if ( ssa . valueSet ( ) != null && ssa . addedHelp ( ) == null ) { info . addInfo ( " -- <{}> of type {} - {} - value set {}" , ssa . getKey ( ) , ssa . getType ( ) . name ( ) , ssa . getDescription ( ) , ArrayUtils . toString ( ssa . valueSet ( ) ) ) ; } else if ( ssa . valueSet ( ) == null && ssa . addedHelp ( ) != null ) { info . addInfo ( " -- <{}> of type {} - {} - {}" , ssa . getKey ( ) , ssa . getType ( ) . name ( ) , ssa . getDescription ( ) , ssa . addedHelp ( ) ) ; } else { info . addInfo ( " -- <{}> of type {} - {}" , ssa . getKey ( ) , ssa . getType ( ) . name ( ) , ssa . getDescription ( ) ) ; } } if ( ssc . addedHelp ( ) != null ) { info . addInfo ( "{}" , ssc . addedHelp ( ) ) ; } } else { info . addInfo ( "" ) ; info . addInfo ( "{}: no command {} found for help, try 'help' to see all available commands" , new Object [ ] { this . skbShell . getPromptName ( ) , toHelp } ) ; } }
Processes general help with no specific command requested.
@param info the info object to add help to
@param toHelp the command to help with