diff --git a/common/content/commands.js b/common/content/commands.js index 0b2b1366..dcc7f4dc 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -1120,8 +1120,10 @@ function Commands() //{{{ bang: true, options: util.Array.toObject( [[v, typeof cmd[k] == "boolean" ? null : cmd[k]] - for ([k, v] in Iterator({ argCount: "-nargs", bang: "-bang", count: "-count" })) - if (k in cmd && cmd[k] != "0")]), + // FIXME: this map is expressed multiple times + for ([k, v] in Iterator({ argCount: "-nargs", bang: "-bang", count: "-count", description: "-description" })) + // FIXME: add support for default values to parseArgs + if (k in cmd && cmd[k] != "0" && cmd[k] != "User-defined command")]), arguments: [cmd.name], literalArg: cmd.replacementText }