Changes the converter argument class to allow shorthands of more than 1 character

This commit is contained in:
Kristian Knarvik 2021-01-25 21:57:39 +01:00
parent 8ffd4184d3
commit d6754b61cb

View File

@ -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 <p>Whether the argument must be followed by a valid value.</p>
* @param valueType <p>The type of value the argument requires.</p>
*/
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 <p>The argument shorthand</p>
*/
public char getShorthand() {
public String getShorthand() {
return shorthand;
}