Added command line option 'date-format' to control how dates are printed to console (not to log)

This commit is contained in:
Dinnerbone
2011-02-26 11:29:37 +00:00
parent bb8d9fbe9d
commit 07b86b1230
4 changed files with 40 additions and 5 deletions

View File

@@ -2,6 +2,9 @@ package org.bukkit.craftbukkit;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Level;
@@ -53,6 +56,11 @@ public class Main {
.withRequiredArg()
.ofType(Integer.class)
.describedAs("Server size");
acceptsAll(asList("d", "date-format"), "Format of the date to display in the console (for log entries)")
.withRequiredArg()
.ofType(SimpleDateFormat.class)
.describedAs("Log date format");
}
};