if (from == null && !completing) {
throw new ShellSyntaxException("no filename after '<'");
} else if (completing &&
(from == null || (!tokenizer.hasNext() && !wspAfter))) {
return new ArgumentCompleter(
new FileArgument("?", Argument.MANDATORY, null), from);
}
continue;
} else if (token.text.equals(">")) {
to = parseFileName(tokenizer, ">");
if (to == null && !completing) {
throw new ShellSyntaxException("no filename after '>'");
} else if (completing &&
(to == null || (!tokenizer.hasNext() && !wspAfter))) {
return new ArgumentCompleter(
new FileArgument("?", Argument.MANDATORY, null), to);
}
continue;
} else if (token.text.equals("|")) {
pipeTo = true;
break;