mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:48:00 +01:00
Detect unknown options in :set
This commit is contained in:
@@ -524,9 +524,17 @@ liberator.Options = function () //{{{
|
|||||||
|
|
||||||
let opt = parseOpt(args, modifiers);
|
let opt = parseOpt(args, modifiers);
|
||||||
if (!opt)
|
if (!opt)
|
||||||
|
{
|
||||||
|
liberator.echoerr("Error parsing :set command: " + args);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let option = opt.option;
|
let option = opt.option;
|
||||||
|
if (option == null)
|
||||||
|
{
|
||||||
|
liberator.echoerr("No such option: " + opt.name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// reset a variable to its default value
|
// reset a variable to its default value
|
||||||
if (opt.reset)
|
if (opt.reset)
|
||||||
|
|||||||
Reference in New Issue
Block a user