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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user