filebot/source/net/filebot/cli/ConflictAction.java

17 lines
325 B
Java
Raw Normal View History

2014-04-19 02:30:29 -04:00
package net.filebot.cli;
public enum ConflictAction {
SKIP, OVERRIDE, FAIL, AUTO;
public static ConflictAction forName(String action) {
for (ConflictAction it : values()) {
if (it.name().equalsIgnoreCase(action))
return it;
}
throw new IllegalArgumentException("Illegal conflict action: " + action);
}
}