rem: var date; try { date = aComLine.handleFlagWithParam("showdate", false); } catch(ex) {} if (date) { currentView().goToDay(jsDateToDateTime(new Date(date))); 
add: for each (var flag in flagsToProcess) { var param = comLine.handleFlagWithParam(flag, false);  switch (flag) { case "showdate": currentView().goToDay(jsDateToDateTime(new Date(param))); break; case "subscribe": case "url":     var uri = comLine.resolveURI(param); var cal = getCalendarManager().createCalendar("ics", uri); getCalendarManager().registerCalendar(cal);   var fullPathRegEx = new RegExp("([^/:]+)[.]ics$"); var prettyName = param.match(fullPathRegEx);  var name; if (prettyName && prettyName.length >= 1) { name = decodeURIComponent(prettyName[1]); } else { name = calGetString("calendar", "untitledCalendarName"); } cal.name = name; break; default:  break; } 
context: function handleCommandLine(aComLine) {    var calurl;    try {        calurl = aComLine.handleFlagWithParam("subscribe", false);    } catch(ex) {}    if (calurl) {        var uri = aComLine.resolveURI(calurl);        var cal = getCalendarManager().createCalendar('ics', uri);        getCalendarManager().registerCalendar(cal);        // Strip ".ics" from filename for use as calendar name, taken from         // calendarCreation.js        var fullPathRegex = new RegExp("([^/:]+)[.]ics$");        var prettyName = calurl.match(fullPathRegex);        var name;        if (prettyName && prettyName.length >= 1) {            name = decodeURIComponent(prettyName[1]);        } else {            name = calGetString("calendar", "untitledCalendarName");        }        cal.name = name;    }    var date;    try {        date = aComLine.handleFlagWithParam("showdate", false);    } catch(ex) {}    if (date) {        currentView().goToDay(jsDateToDateTime(new Date(date)));    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/3bbeb46af23fc6ac074de98e70b45efe6d1c6322/calendar.js/clean/calendar/resources/content/calendar.js