rem: currentArg = e.command.argNames[e.currentArgIndex]; if (currentArg == ":") { /* if everything else is optional, and we have nothing left, * then we can exit.  If *anything* is left, then all optionals * need to be satisfied. */ if (!stringTrim(e.unparsedData)) { initOptionals(); return true; } } else 
add: if (currentArg != ":") 
context: function parse_parseargsraw (e){    var argc = e.command.argNames.length;        function initOptionals()    {        for (var i = 0; i < argc; ++i)        {            if (e.command.argNames[i] != ":" &&                 e.command.argNames[i] != "..."  &&                 !(e.command.argNames[i] in e))            {                e[e.command.argNames[i]] = null;            }        }    }            if (e.inputData)    {        /* if data has been provided, parse it */        e.unparsedData = e.inputData;        var parseResult;        var currentArg;        e.currentArgIndex = 0;                while (e.currentArgIndex < argc && e.unparsedData)        {            currentArg = e.command.argNames[e.currentArgIndex];            if (currentArg == ":")            {                /* if everything else is optional, and we have nothing left,                 * then we can exit.  If *anything* is left, then all optionals                 * need to be satisfied. */                if (!stringTrim(e.unparsedData))                {                    initOptionals();                    return true;                }            }            else            {                if (!this.parseArgument (e, currentArg))                    return false;            }            ++e.currentArgIndex;        }        if (e.currentArgIndex < argc &&            e.command.argNames[e.currentArgIndex] != ":")        {            e.parseError = getMsg(MSN_ERR_REQUIRED_PARAM,                                   e.command.argNames[e.currentArgIndex + 1]);        }        if (e.unparsedData)            display (getMsg(MSN_EXTRA_PARAMS, e.unparsedData), MT_WARN);    }    else    {        /* if no data was provided, check to see if the event is good enough         * on its own. */        var rv = this.isCommandSatisfied (e);        if (rv)            initOptionals();        return rv;    }    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1a541ad578523851e411a2262c56e76f63c8c307/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js