String[] args = list.getArguments();
String arg = ((args == null) || (i >= args.length)) ? "" : args[i];
List<String> subCandidates = new LinkedList<String>();
if (sub.complete(arg, arg.length(), subCandidates) == -1) {
return -1;
}
if (subCandidates.size() == 0) {
return -1;