mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:48:00 +01:00
make use of our argsParser to handle commands with zero arguments
This commit is contained in:
@@ -281,8 +281,8 @@ liberator.Commands = function () //{{{
|
||||
// @param argCount can be:
|
||||
// "0": no arguments
|
||||
// "1": exactly one argument
|
||||
// "+": one or more aguments
|
||||
// "*": zero or more arguments
|
||||
// "+": one or more arguments
|
||||
// "*": zero or more arguments (default if unspecified)
|
||||
// "?": zero or one arguments
|
||||
// @param allowUnknownOptions: -foo won't result in an error, if -foo isn't
|
||||
// specified in "options"
|
||||
@@ -688,7 +688,7 @@ liberator.Commands = function () //{{{
|
||||
|
||||
commandManager.add(["comc[lear]"],
|
||||
"Delete all user-defined commands",
|
||||
function (args)
|
||||
function ()
|
||||
{
|
||||
var commands = getUserCommands();
|
||||
for (var i = 0; i < commands.length; i++)
|
||||
|
||||
Reference in New Issue
Block a user