mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 12:55:47 +01:00
Add tests for dead help links. Fix some minor bugs. Show error when trying to modify a builtin group rather than failing silently.
This commit is contained in:
@@ -463,6 +463,11 @@ var Contexts = Module("contexts", {
|
||||
|
||||
if (args.context)
|
||||
args.context.group = group;
|
||||
|
||||
util.assert(!group.builtin ||
|
||||
!["-description", "-locations", "-nopersist"]
|
||||
.some(function (arg) set.has(args.explicitOpts, arg)),
|
||||
"Cannot modify builtin group");
|
||||
},
|
||||
{
|
||||
argCount: "?",
|
||||
|
||||
Reference in New Issue
Block a user