1
0
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:
Doug Kearns
2008-08-14 08:24:02 +00:00
parent 00f8ed632e
commit a234aa747e
12 changed files with 97 additions and 33 deletions

View File

@@ -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++)