mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
Detect unknown options in :set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user