From 8fb32402c7801f2221513c4cb7cb3d760e2e3408 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 21 Jan 2021 03:55:44 +0100 Subject: [PATCH] Adds a check to make sure an expected comma separated list can be parsed to a list --- .../knarcraft/ffmpegconverter/parser/ConverterArgument.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java b/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java index b1be41d..3c61509 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java @@ -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;