Fix required args

This commit is contained in:
Jesse Boyd 2016-03-27 07:11:09 +11:00
parent 46d3dc609e
commit 53e56a6414

View File

@ -324,7 +324,7 @@ public abstract class Command {
}
Argument<?>[] reqArgs = cmd.getRequiredArguments();
if ((reqArgs != null) && (reqArgs.length > 0)) {
boolean failed = args.length > reqArgs.length;
boolean failed = args.length < reqArgs.length;
String[] baseSplit = getCommandString().split(" ");
String[] fullSplit = getUsage().split(" ");
String base = getCommandString();