/** * Request a help String array from the command The String is formated with your internal * BOLD/ITALIC/etc Tags * * @return Help String array, null if there is no help available */ public String[] help() { ArrayList<String> res = new ArrayList<String>(); for (Cmd c : mCommandMap.values()) { if (c.getHelp() != null) { res.add(c.getHelp()); } for (SubCmd sc : c.getSubCmds()) { if (sc.getHelp() != null) { res.add(sc.getHelp()); } } } if (res.size() > 0) { return res.toArray(new String[res.size()]); } else { return null; } }