function command(name, parent, settings)
{
    settings = extend(
        {
            'help':     '',
            'action':   function() {}
        },
        settings
    );

    this.name = name;
    this.settings = settings;

    this.commands = [];
    this.options = [];
    this.operands = [];

    this.parent = parent;
}
/**
 * Constructor.
 *
 * @param   string          name            Name of command.
 * @param   command         parent          Parent command.
 * @param   object          settings        Optional additional settings.
 */
Constructor.
@param   string          name            Name of command.
@param   command         parent          Parent command.
@param   object          settings        Optional additional settings.
Constructor . @param string name Name of command . @param command parent Parent command . @param object settings Optional additional settings .
function command(name, parent, settings)
{
    settings = extend(
        {
            'help':     '',
            'action':   function() {}
        },
        settings
    );
    this.name = name;
    this.settings = settings;
    this.commands = [];
    this.options = [];
    this.operands = [];
    this.parent = parent;
}
function command ( name , parent , settings ) { settings = extend ( { 'help' : '' , 'action' : function ( ) { } } , settings ) ; this . name = name ; this . settings = settings ; this . commands = [ ] ; this . options = [ ] ; this . operands = [ ] ; this . parent = parent ; }
Constructor.
Constructor .