mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 14:22:27 +01:00
fix parseArgs - literalArg typo
This commit is contained in:
@@ -632,7 +632,9 @@ function Commands() //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check for correct number of arguments
|
// check for correct number of arguments
|
||||||
if (!complete && (args.arguments.length == 0 && (argCount == "1" || argCount == "+") || literal && argCount == "+" && /^\s*$/.test(literalArg)))
|
if (!complete && (args.arguments.length == 0 && (argCount == "1" || argCount == "+") ||
|
||||||
|
// TODO: what is this for? -- djk
|
||||||
|
literal && argCount == "+" && /^\s*$/.test(args.literalArg)))
|
||||||
{
|
{
|
||||||
liberator.echoerr("E471: Argument required");
|
liberator.echoerr("E471: Argument required");
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user