Modify some arg parse in TikaCLI
1. fix parse arg "--client="
2. make the way of parse arg "--compare-file-magic" same as others
@@ -391,7 +391,7 @@ public class TikaCLI {
displaySupportedTypes();
} else if (arg.startsWith("--compare-file-magic=")) {
pipeMode = false;
- compareFileMagic(arg.substring(arg.indexOf('=')+1));
+ compareFileMagic(arg.substring("--compare-file-magic=".length()));
} else if (arg.equals("--dump-minimal-config")) {
pipeMode = false;
dumpConfig(TikaConfigSerializer.Mode.MINIMAL);
@@ -464,7 +464,7 @@ public class TikaCLI {
} else if (arg.startsWith("-c")) {
networkURI = new URI(arg.substring("-c".length()));
} else if (arg.startsWith("--client=")) {
- networkURI = new URI(arg.substring("-c".length()));
+ networkURI = new URI(arg.substring("--client=".length()));
} else {
pipeMode = false;
configure();
