1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 06:14:12 +01:00

Update components to load more reliably on FF<4.0. Fix command line option parsing.

This commit is contained in:
Kris Maglione
2010-09-21 20:15:26 -04:00
parent a285d6a405
commit d9db020e81
3 changed files with 18 additions and 14 deletions

View File

@@ -1098,12 +1098,18 @@ const Dactyl = Module("dactyl", {
*/
parseCommandLine: function (cmdline) {
const options = [
[["+u"], commands.OPTIONS_STRING],
[["++noplugin"], commands.OPTIONS_NOARG],
[["++cmd"], commands.OPTIONS_STRING, null, null, true],
[["+c"], commands.OPTIONS_STRING, null, null, true]
];
return commands.parseArgs(cmdline, options, "*");
[["+u"], CommandOption.STRING],
[["++noplugin"], CommandOption.NOARG],
[["++cmd"], CommandOption.STRING, null, null, true],
[["+c"], CommandOption.STRING, null, null, true]
].map(CommandOption.fromArray, CommandOption);
try {
return commands.parseArgs(cmdline, options, "*");
}
catch (e) {
dactyl.reportError(e, true);
return [];
}
},
variableReference: function (string) {