Adds a check to make sure an expected comma separated list can be parsed to a list

This commit is contained in:
Kristian Knarvik 2021-01-21 03:55:44 +01:00
parent 4674f1276c
commit 8fb32402c7

View File

@ -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;