Don't call next suggestion provider if there are no args left.

This commit is contained in:
Albert Pham 2015-10-28 14:08:29 -07:00
parent cba32732a3
commit 6cfc60b2d6

View File

@ -43,6 +43,11 @@ public abstract class SimpleCommand<T> extends ParameterCommand<T> {
throw e;
}
}
// There's nothing more anyway
if (args.position() == args.size()) {
return suggestions;
}
}
return suggestions;
}