FileDocCategorySizeDatePackage
help.javaAPI DocExample1491Wed Apr 05 11:25:42 BST 2000None

help

public class help extends Object implements Command
help.java 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]");