mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:47:58 +01:00
Fix -{config.name} command-line processing.
--HG-- extra : rebase_source : 452d953121c4b28ea1585842710e0c74b4bef348
This commit is contained in:
@@ -136,8 +136,8 @@ const Liberator = Module("liberator", {
|
||||
|
||||
/**
|
||||
* @property {Object} The map of command-line options. These are
|
||||
* specified in the argument to the host application's -liberator
|
||||
* option. E.g. $ firefox -liberator '+u=tempRcFile ++noplugin'
|
||||
* specified in the argument to the host application's -{config.name}
|
||||
* option. E.g. $ firefox -vimperator '+u=/tmp/rcfile ++noplugin'
|
||||
* Supported options:
|
||||
* +u=RCFILE Use RCFILE instead of .vimperatorrc.
|
||||
* ++noplugin Don't load plugins.
|
||||
@@ -1734,8 +1734,7 @@ const Liberator = Module("liberator", {
|
||||
|
||||
liberator.log("All modules loaded", 3);
|
||||
|
||||
services.add("commandLineHandler", "@mozilla.org/commandlinehandler/general-startup;1?type=" + config.name.toLowerCase(),
|
||||
Ci.nsICommandLineHandler);
|
||||
services.add("commandLineHandler", "@mozilla.org/commandlinehandler/general-startup;1?type=" + config.name.toLowerCase());
|
||||
|
||||
let commandline = services.get("commandLineHandler").optionValue;
|
||||
if (commandline) {
|
||||
|
||||
@@ -35,7 +35,7 @@ CommandLineHandler.prototype = {
|
||||
this.optionValue = commandLine.handleFlagWithParam(name, false);
|
||||
}
|
||||
catch (e) {
|
||||
//"vimperator: option -vimperator requires an argument"
|
||||
dump(name + ": option '-" + name + "' requires an argument\n");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ CommandLineHandler.prototype = {
|
||||
this.optionValue = commandLine.handleFlagWithParam(name, false);
|
||||
}
|
||||
catch (e) {
|
||||
//"vimperator: option -vimperator requires an argument"
|
||||
dump(name + ": option '-" + name + "' requires an argument\n");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ CommandLineHandler.prototype = {
|
||||
this.optionValue = commandLine.handleFlagWithParam(name, false);
|
||||
}
|
||||
catch (e) {
|
||||
//"vimperator: option -vimperator requires an argument"
|
||||
dump(name + ": option '-" + name + "' requires an argument\n");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user