Skip to content

Commit

Permalink
J3oDump: simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 25, 2023
1 parent 3d63a0d commit 987f85b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions J3oDump/src/main/java/jme3utilities/cli/J3oDump.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public static void main(String[] arguments) {
} else if (argument.equals("--root") || argument.equals("-r")) {
if (i == lastIndex) {
System.err.println("Missing argument for " + argument);
System.err.flush();
printHelp();
System.exit(1);
} else {
Expand Down Expand Up @@ -169,7 +168,6 @@ public static void main(String[] arguments) {
} else {
String quotedArg = MyString.quote(argument);
System.err.println("Unrecognized argument: " + quotedArg);
System.err.flush();
printHelp();
System.exit(1);
}
Expand Down Expand Up @@ -235,6 +233,7 @@ private static void dumpAsset(String assetPath) {
* Print the help/usage hints.
*/
private static void printHelp() {
System.err.flush();
String workingDirectory = System.getProperty("user.dir");
System.out.printf("NAME:%n"
+ " j3odump - dump J3O files to standard output.%n%n"
Expand Down

0 comments on commit 987f85b

Please sign in to comment.