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