1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

Detect unknown options in :set

This commit is contained in:
Kris Maglione
2008-10-09 19:17:41 +00:00
parent 53bd7a6bc1
commit b8c29417f2

View File

@@ -524,9 +524,17 @@ liberator.Options = function () //{{{
let opt = parseOpt(args, modifiers);
if (!opt)
{
liberator.echoerr("Error parsing :set command: " + args);
return;
}
let option = opt.option;
if (option == null)
{
liberator.echoerr("No such option: " + opt.name);
return;
}
// reset a variable to its default value
if (opt.reset)