1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 02:35:46 +01:00

Add -pentadactyl-remote command-line flag and CommandOption.STRINGMAP type.

--HG--
extra : rebase_source : a306ad6e8c2d019b92a6ff58414eb3ff8ab149b9
This commit is contained in:
Kris Maglione
2011-08-12 17:27:46 -04:00
parent 0bcba9fb23
commit 5e86f4ed93
8 changed files with 42 additions and 5 deletions

View File

@@ -853,6 +853,9 @@ var Options = Module("options", {
*/
add: function add(names, description, type, defaultValue, extraInfo) {
const self = this;
util.assert(type in Option.types,
_("option.noSuchType", type),
true);
if (!extraInfo)
extraInfo = {};