refactor: support more resource-mode params (#3354)

This commit is contained in:
Connor Tumbleson 2023-10-01 06:26:54 -04:00 committed by GitHub
parent 93c66ef373
commit 23d9ec0e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,11 +167,15 @@ public class Main {
if (cli.hasOption("m") || cli.hasOption("match-original")) {
config.analysisMode = true;
}
if (cli.hasOption("res-mode") || cli.hasOption("resolve-resources-mode")) {
String mode = cli.getOptionValue("res-mode");
if (cli.hasOption("resm") || cli.hasOption("res-mode") || cli.hasOption("resolve-resources-mode")) {
String mode = cli.getOptionValue("resm");
if (mode == null) {
mode = cli.getOptionValue("res-mode");
}
if (mode == null) {
mode = cli.getOptionValue("resolve-resources-mode");
}
switch (mode) {
case "remove":
case "delete":