From d6754b61cb4a43ade7a242f5cd9c8d4f426fa4d3 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 25 Jan 2021 21:57:39 +0100 Subject: [PATCH] Changes the converter argument class to allow shorthands of more than 1 character --- .../knarcraft/ffmpegconverter/parser/ConverterArgument.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java b/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java index 3c61509..e5e03f9 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/parser/ConverterArgument.java @@ -8,7 +8,7 @@ import net.knarcraft.ffmpegconverter.utility.ListUtil; public class ConverterArgument { private final String name; - private final char shorthand; + private final String shorthand; private final boolean valueRequired; private final ConverterArgumentValue valueType; @@ -19,7 +19,7 @@ public class ConverterArgument { * @param valueRequired

Whether the argument must be followed by a valid value.

* @param valueType

The type of value the argument requires.

*/ - public ConverterArgument(String name, char shorthand, boolean valueRequired, ConverterArgumentValue valueType) { + public ConverterArgument(String name, String shorthand, boolean valueRequired, ConverterArgumentValue valueType) { this.name = name; this.shorthand = shorthand; this.valueRequired = valueRequired; @@ -38,7 +38,7 @@ public class ConverterArgument { * Gets the argument shorthand * @return

The argument shorthand

*/ - public char getShorthand() { + public String getShorthand() { return shorthand; }