1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 00:28:00 +01:00

Add a description to :command -nargs completion.

This commit is contained in:
Doug Kearns
2009-08-15 01:57:45 +10:00
parent 662bf53d5f
commit 0cab11f017

View File

@@ -1100,7 +1100,12 @@ function Commands() //{{{
completer: function (context) completion.userCommand(context), completer: function (context) completion.userCommand(context),
options: [ options: [
[["-nargs"], self.OPTION_STRING, [["-nargs"], self.OPTION_STRING,
function (arg) /^[01*?+]$/.test(arg), ["0", "1", "*", "?", "+"]], function (arg) /^[01*?+]$/.test(arg),
[["0", "No arguments are allowed (default)"],
["1", "One argument is allowed"],
["*", "Zero or more arguments are allowed"],
["?", "Zero or one argument is allowed"],
["+", "One or more arguments is allowed"]]],
[["-bang"], self.OPTION_NOARG], [["-bang"], self.OPTION_NOARG],
[["-count"], self.OPTION_NOARG], [["-count"], self.OPTION_NOARG],
[["-description"], self.OPTION_STRING], [["-description"], self.OPTION_STRING],