mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
21 lines
340 B
Java
21 lines
340 B
Java
|
|
||
|
package net.sourceforge.filebot.cli;
|
||
|
|
||
|
|
||
|
public enum ConflictAction {
|
||
|
|
||
|
OVERRIDE,
|
||
|
SKIP,
|
||
|
FAIL;
|
||
|
|
||
|
public static ConflictAction forName(String action) {
|
||
|
for (ConflictAction it : values()) {
|
||
|
if (it.name().equalsIgnoreCase(action))
|
||
|
return it;
|
||
|
}
|
||
|
|
||
|
throw new IllegalArgumentException("Illegal conflict action: " + action);
|
||
|
}
|
||
|
|
||
|
}
|