mirror of
https://github.com/GeyserMC/PackConverter.git
synced 2026-01-04 15:31:36 +00:00
Clean up CLI handling
This commit is contained in:
@@ -41,16 +41,13 @@ public class Main {
|
||||
boolean debug = args.contains("--debug") || args.contains("-d");
|
||||
|
||||
if (args.contains("nogui")) {
|
||||
if (!args.contains("--input")) {
|
||||
if (!args.contains("--input") || args.indexOf("--input") + 1 >= args.size()) {
|
||||
throw new IllegalArgumentException("No input provided.");
|
||||
} else if (args.indexOf("--input") + 1 >= args.size()) {
|
||||
throw new IllegalArgumentException("Input specified with no value.");
|
||||
}
|
||||
|
||||
String inputPath = args.get(args.indexOf("--input") + 1);
|
||||
|
||||
String outputPath;
|
||||
|
||||
String packName;
|
||||
|
||||
if (args.contains("--output")) {
|
||||
|
||||
Reference in New Issue
Block a user