void doHelp() throws AmbiguousException {
  String topic="help";
  int cmd;
  String commandName;
  if (hasMoreTokens()) {
    cmd=commandFor(nextToken());
    commandName=commandNumberToCommandName(g_commandArray,cmd);
    topic=commandName;
    if (cmd == CMD_INFO && hasMoreTokens()) {
      cmd=infoCommandFor(nextToken());
      commandName=commandNumberToCommandName(g_infoCommandArray,cmd);
      topic+=" " + commandName;
    }
 else     if (cmd == CMD_SHOW && hasMoreTokens()) {
      cmd=showCommandFor(nextToken());
      commandName=commandNumberToCommandName(g_showCommandArray,cmd);
      topic+=" " + commandName;
    }
  }
  out(getHelpTopic(topic));
}

void doHelp ( ) throws AmbiguousException { String topic = "help" ; int cmd ; String commandName ; if ( hasMoreTokens ( ) ) { cmd = commandFor ( nextToken ( ) ) ; commandName = commandNumberToCommandName ( g_commandArray , cmd ) ; topic = commandName ; if ( cmd == CMD_INFO && hasMoreTokens ( ) ) { cmd = infoCommandFor ( nextToken ( ) ) ; commandName = commandNumberToCommandName ( g_infoCommandArray , cmd ) ; topic += " " + commandName ; } else if ( cmd == CMD_SHOW && hasMoreTokens ( ) ) { cmd = showCommandFor ( nextToken ( ) ) ; commandName = commandNumberToCommandName ( g_showCommandArray , cmd ) ; topic += " " + commandName ; } } out ( getHelpTopic ( topic ) ) ; }
provide contenxt sensistive help
