You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,32 +89,22 @@ public static GathererController run(String [] args){
89
89
gatherer.setTableName(cmd.getOptionValue("T"));
90
90
}
91
91
92
-
//Split tables
93
-
gatherer.setSplitTables(cmd.hasOption("S"));
94
-
95
92
//Verbose mode
96
-
if(cmd.hasOption("q")){
97
-
gatherer.setQuiet(true);
98
-
} else {
99
-
gatherer.setQuiet(false);
100
-
}
93
+
gatherer.setQuiet(cmd.hasOption("q"));
101
94
102
95
//Debug mode
103
-
if(cmd.hasOption("v")){
104
-
gatherer.setVerbose(true);
105
-
} else{
106
-
gatherer.setVerbose(false);
107
-
}
96
+
gatherer.setVerbose(cmd.hasOption("v"));
108
97
109
98
//Fail print
110
-
if(cmd.hasOption("F")){
111
-
gatherer.setPrintFails(true);
112
-
}
113
-
else
114
-
{
115
-
gatherer.setPrintFails(false);
116
-
}
99
+
gatherer.setPrintFails(cmd.hasOption("F"));
100
+
101
+
//Split tables
102
+
gatherer.setStoreMounts(cmd.hasOption("S"));
117
103
104
+
//Set suffix
105
+
if(cmd.hasOption("x")){
106
+
gatherer.setTableSuffix(cmd.getOptionValue("x"));
107
+
}
118
108
119
109
gatherer.run();
120
110
returngatherer;
@@ -148,10 +138,11 @@ public static Options setupOptions(){
148
138
OptionoptPassword = Option.builder("p").longOpt("password").argName("database-user-password").hasArg().numberOfArgs(1).desc("database user password").build();
149
139
OptionoptThreads = Option.builder("t").longOpt("threads").argName("no-threads").hasArg().numberOfArgs(1).desc("number of gatherer threads to run").build();
150
140
OptionoptTable = Option.builder("T").longOpt("table").hasArg().numberOfArgs(1).argName("table").desc("the table to write records to").build();
151
-
OptionoptSplitTable = Option.builder("S").longOpt("split-table").hasArg().numberOfArgs(1).argName("table-suffix").desc("split tblplayers into multiple tables").build();
141
+
OptionoptSplitTable = Option.builder("S").longOpt("split-table").desc("split tblplayers into multiple tables").build();
152
142
OptionoptQuiet = Option.builder("q").longOpt("quiet").desc("run program in quiet mode - no console output").build();
153
143
OptionoptVerbose = Option.builder("v").longOpt("verbose").desc("run program in verbose bug mode - full console output").build();
154
144
OptionoptFailPrint = Option.builder("F").longOpt("print-failures").desc("print records that don't exist").build();
145
+
OptionoptSuffix = Option.builder("x").longOpt("suffix").hasArg().numberOfArgs(1).argName("table-suffix").desc("suffix to append to all tables").build();
155
146
156
147
//Add each option to the options object
157
148
options.addOption(optStart);
@@ -170,6 +161,7 @@ public static Options setupOptions(){
0 commit comments