Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiffcomment: fix -version, -no-upgrade, -debug, -trace #4258

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

import loci.common.Constants;
import loci.common.DataTools;
import loci.common.DebugTools;
import loci.common.RandomAccessInputStream;
import loci.common.RandomAccessOutputStream;
import loci.formats.FormatException;
Expand Down Expand Up @@ -73,8 +74,6 @@ public static void main(String[] args) throws FormatException, IOException {
return;
}

CommandLineTools.runUpgradeCheck(args);

// parse flags
boolean edit = false;
String newComment = null;
Expand Down Expand Up @@ -106,9 +105,22 @@ else if (newComment.equals("-")) {
}
}
}
else System.out.println("Warning: unknown flag: " + args[i]);
else if (args[i].equals(CommandLineTools.VERSION)) {
CommandLineTools.printVersion();
sbesson marked this conversation as resolved.
Show resolved Hide resolved
}
else if (args[i].equals("-debug")) {
DebugTools.setRootLevel("DEBUG");
}
else if (args[i].equals("-trace")) {
DebugTools.setRootLevel("TRACE");
}
else if (!args[i].equals(CommandLineTools.NO_UPGRADE_CHECK)) {
System.out.println("Warning: unknown flag: " + args[i]);
}
}

CommandLineTools.runUpgradeCheck(args);

// process files
for (String file : files) {
if (edit) {
Expand Down
Loading