1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 12:34:16 +01:00

Add :verbose.

This commit is contained in:
Doug Kearns
2009-08-23 17:39:13 +10:00
parent a4a204a8fe
commit e159a0d07d
9 changed files with 53 additions and 9 deletions

View File

@@ -794,6 +794,30 @@ const liberator = (function () //{{{
literal: 0
});
commands.add(["verb[ose]"],
"Execute a command with 'verbose' set",
function (args)
{
let vbs = options.get("verbose");
let value = vbs.value;
try
{
vbs.set(args.count > -1 ? args.count : 1);
liberator.execute(args[0], null, true);
}
finally
{
vbs.set(value);
}
},
{
argCount: "+",
completer: function (context) completion.ex(context),
count: true,
literal: 0
});
commands.add(["ve[rsion]"],
"Show version information",
function (args)