22
33import java .io .File ;
44import java .io .IOException ;
5- import java .text .SimpleDateFormat ;
65import java .util .logging .Level ;
76import java .util .logging .Logger ;
87import joptsimple .OptionParser ;
@@ -80,37 +79,6 @@ public static void main(String[] args) {
8079 .ofType (Integer .class )
8180 .describedAs ("Server size" );
8281
83- this .acceptsAll (asList ("d" , "date-format" ), "Format of the date to display in the console (for log entries)" )
84- .withRequiredArg ()
85- .ofType (SimpleDateFormat .class )
86- .describedAs ("Log date format" );
87-
88- this .accepts ("log-pattern" , "Specifies the log filename pattern" )
89- .withRequiredArg ()
90- .ofType (String .class )
91- .defaultsTo ("server.log" )
92- .describedAs ("Log filename" );
93-
94- this .accepts ("log-limit" , "Limits the maximum size of the log file (0 = unlimited)" )
95- .withRequiredArg ()
96- .ofType (Integer .class )
97- .defaultsTo (0 )
98- .describedAs ("Max log size" );
99-
100- this .accepts ("log-count" , "Specified how many log files to cycle through" )
101- .withRequiredArg ()
102- .ofType (Integer .class )
103- .defaultsTo (1 )
104- .describedAs ("Log count" );
105-
106- this .accepts ("log-append" , "Whether to append to the log file" )
107- .withRequiredArg ()
108- .ofType (Boolean .class )
109- .defaultsTo (true )
110- .describedAs ("Log append" );
111-
112- this .accepts ("log-strip-color" , "Strips color codes from log file" );
113-
11482 this .acceptsAll (asList ("b" , "bukkit-settings" ), "File for bukkit settings" )
11583 .withRequiredArg ()
11684 .ofType (File .class )
@@ -137,6 +105,8 @@ public static void main(String[] args) {
137105
138106 this .accepts ("demo" , "Demo mode" );
139107
108+ this .accepts ("bonusChest" , "Enable the bonus chest" );
109+
140110 this .accepts ("initSettings" , "Only create configuration files and then exit" ); // SPIGOT-5761: Add initSettings option
141111
142112 this .acceptsAll (asList ("S" , "spigot-settings" ), "File for spigot settings" )
0 commit comments