/** * If the given flag is being completed, generate suggestions from the given choices, * by throwing a {@link SuggestException}. */ public void suggestFlag(char flag, Iterable<String> choices) throws SuggestException { if(isFlag(flag)) { suggest(choices); } }
/** * If the given argument is being completed, generate suggestions from the given choices, * by throwing a {@link SuggestException}. */ public void suggestArgument(int index, Iterable<String> choices) throws SuggestException { if(isArgument(index)) { suggest(choices); } }