inWord++;
wordStart = j + 1;
}
}
String lastWord = partial.substring(wordStart);
Completable completable = interpreter.parsePartial(shell, partial);
CommandCompletions completions = new CommandCompletions();
completable.complete(completions, shell);
Set<String> completionWords = completions.getCompletions();
switch (flags.charAt(inWord)) {
case 'T':
// Expect completions
Assert.assertTrue("got no completions: " + diag(partial, completions),