Skip to content

Commit 9727c04

Browse files
committed
Added default value in help description for CLI arguments
1 parent 53383a9 commit 9727c04

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommandOptions.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public class ImportCommandOptions {
3434
@CommandLine.Option(
3535
names = {"--max-threads", "-mt"},
3636
paramLabel = "<MAX_THREADS>",
37-
description =
38-
"Maximum number of threads to use for parallel processing (default: number of available processors)",
37+
description = "Maximum number of threads to use for parallel processing (default: 16)",
3938
defaultValue = "16")
4039
protected int maxThreads;
4140

@@ -133,29 +132,31 @@ public class ImportCommandOptions {
133132
@CommandLine.Option(
134133
names = {"--data-chunk-size", "-dcs"},
135134
paramLabel = "<DATA_CHUNK_SIZE>",
136-
description = "Maximum number of records to be included in a single data chunk",
135+
description =
136+
"Maximum number of records to be included in a single data chunk (default: 500)",
137137
defaultValue = "500")
138138
protected int dataChunkSize;
139139

140140
@CommandLine.Option(
141141
names = {"--transaction-size", "-ts"},
142142
paramLabel = "<TRANSACTION_SIZE>",
143143
description =
144-
"Maximum number of put operations that are grouped together into one ScalarDB distributed transaction, only supported in ScalarDB transaction mode",
144+
"Maximum number of put operations that are grouped together into one ScalarDB distributed transaction, only supported in ScalarDB transaction mode (default: 100)",
145145
defaultValue = "100")
146146
protected int transactionSize;
147147

148148
@CommandLine.Option(
149149
names = {"--split-log-mode", "-slm"},
150150
paramLabel = "<SPLIT_LOG_MODE>",
151-
description = "Split log file into multiple files based on data chunks",
151+
description = "Split log file into multiple files based on data chunks (default: false)",
152152
defaultValue = "false")
153153
protected boolean splitLogMode;
154154

155155
@CommandLine.Option(
156156
names = {"--data-chunk-queue-size", "-qs"},
157157
paramLabel = "<DATA_CHUNK_QUEUE_SIZE>",
158-
description = "Maximum number of data chunks that can be kept at a time for processing",
158+
description =
159+
"Maximum number of data chunks that can be kept at a time for processing (default: 256)",
159160
defaultValue = "256")
160161
protected int dataChunkQueueSize;
161162
}

0 commit comments

Comments
 (0)