1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 15:24:11 +01:00

Banish old commands.parseArgs prototype.

This commit is contained in:
Kris Maglione
2010-09-24 15:59:51 -04:00
parent 0753c9505e
commit 3645cd27d0
3 changed files with 4 additions and 7 deletions

View File

@@ -1109,7 +1109,7 @@ const Dactyl = Module("dactyl", {
[["+c"], CommandOption.STRING, null, null, true]
].map(CommandOption.fromArray, CommandOption);
try {
return commands.parseArgs(cmdline, options, "*");
return commands.parseArgs(cmdline, { options: options, argCount: "*" });
}
catch (e) {
dactyl.reportError(e, true);