Skip to content

Commit 60540ec

Browse files
author
Vladimir Kotal
committed
move --token below -T and -t
1 parent f1e34e1 commit 60540ec

File tree

1 file changed

+11
-11
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+11
-11
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,17 @@ public static String[] parseOptions(String[] argv) throws ParseException {
750750
"stylesheet. The factory-setting is: \"default\".").execute(stylePath ->
751751
cfg.setWebappLAF((String) stylePath));
752752

753+
parser.on("-T", "--threads", "=number", Integer.class,
754+
"The number of threads to use for index generation, repository scan",
755+
"and repository invalidation.",
756+
"By default the number of threads will be set to the number of available",
757+
"CPUs. This influences the number of spawned ctags processes as well.").
758+
execute(threadCount -> cfg.setIndexingParallelism((Integer) threadCount));
759+
760+
parser.on("-t", "--tabSize", "=number", Integer.class,
761+
"Default tab size to use (number of spaces per tab character).")
762+
.execute(tabSize -> cfg.setTabSize((Integer) tabSize));
763+
753764
parser.on("--token", "=string|@file_with_string",
754765
"Authorization bearer API token to use when making API calls",
755766
"to the web application").
@@ -767,17 +778,6 @@ public static String[] parseOptions(String[] argv) throws ParseException {
767778
}
768779
});
769780

770-
parser.on("-T", "--threads", "=number", Integer.class,
771-
"The number of threads to use for index generation, repository scan",
772-
"and repository invalidation.",
773-
"By default the number of threads will be set to the number of available",
774-
"CPUs. This influences the number of spawned ctags processes as well.").
775-
execute(threadCount -> cfg.setIndexingParallelism((Integer) threadCount));
776-
777-
parser.on("-t", "--tabSize", "=number", Integer.class,
778-
"Default tab size to use (number of spaces per tab character).")
779-
.execute(tabSize -> cfg.setTabSize((Integer) tabSize));
780-
781781
parser.on("-U", "--uri", "=SCHEME://webappURI:port/contextPath",
782782
"Send the current configuration to the specified web application.").execute(webAddr -> {
783783
webappURI = (String) webAddr;

0 commit comments

Comments
 (0)