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:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user