1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 22:45:45 +01:00

[bootstrap] Fix stupid bug.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-25 13:13:10 -05:00
parent 8da718d47b
commit 203f8799da
5 changed files with 20 additions and 15 deletions

View File

@@ -2096,14 +2096,16 @@ const Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
if (!services.commandLineHandler)
services.add("commandLineHandler", "@mozilla.org/commandlinehandler/general-startup;1?type=" + config.name);
let commandline = services.commandLineHandler.optionValue;
if (commandline) {
let args = dactyl.parseCommandLine(commandline);
dactyl.commandLineOptions.rcFile = args["+u"];
dactyl.commandLineOptions.noPlugins = "++noplugin" in args;
dactyl.commandLineOptions.postCommands = args["+c"];
dactyl.commandLineOptions.preCommands = args["++cmd"];
util.dump("Processing command-line option: " + commandline);
if (services.commandlinehandler) {
let commandline = services.commandLineHandler.optionValue;
if (commandline) {
let args = dactyl.parseCommandLine(commandline);
dactyl.commandLineOptions.rcFile = args["+u"];
dactyl.commandLineOptions.noPlugins = "++noplugin" in args;
dactyl.commandLineOptions.postCommands = args["+c"];
dactyl.commandLineOptions.preCommands = args["++cmd"];
util.dump("Processing command-line option: " + commandline);
}
}
dactyl.log("Command-line options: " + util.objectToString(dactyl.commandLineOptions), 3);