Adds a check to make sure an expected comma separated list can be parsed to a list
This commit is contained in:
parent
4674f1276c
commit
8fb32402c7
@ -1,5 +1,7 @@
|
||||
package net.knarcraft.ffmpegconverter.parser;
|
||||
|
||||
import net.knarcraft.ffmpegconverter.utility.ListUtil;
|
||||
|
||||
/**
|
||||
* A class representing a command argument
|
||||
*/
|
||||
@ -66,6 +68,7 @@ public class ConverterArgument {
|
||||
String lower = value.toLowerCase();
|
||||
return lower.equals("true") || lower.equals("false");
|
||||
case COMMA_SEPARATED_LIST:
|
||||
ListUtil.getListFromCommaSeparatedString(value);
|
||||
return true;
|
||||
case STRING:
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user