FileDocCategorySizeDatePackage
help.javaAPI DocExample2058Thu Dec 15 21:16:24 GMT 2005com.oreilly.jent.jndi

help

public class help extends Object implements Command
help: The help command displays help for NamingShell. If the user types help [command] help invokes that command's help method.

Fields Summary
Constructors Summary
Methods Summary
public voidexecute(javax.naming.Context currentContext, java.util.Vector args)

        
        if (args.isEmpty())
            help();
        else {
            String commandName = (String)args.firstElement();
            Command command = NamingShell.loadCommand(commandName);
            if (command != null)
                command.help();
            else 
                throw new CommandException(new Exception(), 
                    "No help available for this command");
        }
    
public voidhelp()

 System.out.print("Usage: help [command]");