/** * Create a parser for lists of {@link Enum}s. * @param name The name for the values of the option (typically the enum name * with 'list' appended). * @param enumClass The class of the enum. * @param <T> The class of the enum. * @return A new {@link ArgumentParser} for lists of instances of the * specified enum. */ public static <T extends Enum<T>> ArgumentParser<List<T>> enumListParser( String name, Class<T> enumClass) { return asListParser(name, Enums.stringConverter(enumClass)); }