Changes the converter argument class to allow shorthands of more than 1 character
This commit is contained in:
		@@ -8,7 +8,7 @@ import net.knarcraft.ffmpegconverter.utility.ListUtil;
 | 
				
			|||||||
public class ConverterArgument {
 | 
					public class ConverterArgument {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private final String name;
 | 
					    private final String name;
 | 
				
			||||||
    private final char shorthand;
 | 
					    private final String shorthand;
 | 
				
			||||||
    private final boolean valueRequired;
 | 
					    private final boolean valueRequired;
 | 
				
			||||||
    private final ConverterArgumentValue valueType;
 | 
					    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 valueRequired <p>Whether the argument must be followed by a valid value.</p>
 | 
				
			||||||
     * @param valueType <p>The type of value the argument requires.</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.name = name;
 | 
				
			||||||
        this.shorthand = shorthand;
 | 
					        this.shorthand = shorthand;
 | 
				
			||||||
        this.valueRequired = valueRequired;
 | 
					        this.valueRequired = valueRequired;
 | 
				
			||||||
@@ -38,7 +38,7 @@ public class ConverterArgument {
 | 
				
			|||||||
     * Gets the argument shorthand
 | 
					     * Gets the argument shorthand
 | 
				
			||||||
     * @return <p>The argument shorthand</p>
 | 
					     * @return <p>The argument shorthand</p>
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public char getShorthand() {
 | 
					    public String getShorthand() {
 | 
				
			||||||
        return shorthand;
 | 
					        return shorthand;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user