1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 20:34:11 +01:00

add "?" as the argCount to commands with an optional single arg

This commit is contained in:
Doug Kearns
2008-12-01 11:45:25 +00:00
parent a4361e49f8
commit ead1babb4d
6 changed files with 15 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ const liberator = (function () //{{{
}
},
{
argCount: "+",
argCount: "1",
// TODO: add this as a standard menu completion function
completer: function (context)
{
@@ -326,9 +326,10 @@ const liberator = (function () //{{{
liberator.help(args.string);
},
{
argCount: "?",
bang: true,
completer: function (context) completion.help(context),
literal: 0
literal: 0 // FIXME: why literal?
});
commands.add(["javas[cript]", "js"],