Skip to content

Commit 11cc45a

Browse files
author
Vladimir Kotal
committed
log indexer options
fixes #2320
1 parent 3f0cbd2 commit 11cc45a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.nio.file.Paths;
3232
import java.text.ParseException;
3333
import java.util.ArrayList;
34+
import java.util.Arrays;
3435
import java.util.HashMap;
3536
import java.util.HashSet;
3637
import java.util.List;
@@ -774,6 +775,8 @@ public static String[] parseOptions(String[] argv) throws ParseException {
774775
// so that options may be overwritten later.
775776
configure.parse(argv);
776777

778+
LOGGER.log(Level.INFO, "Indexer options: {0}", Arrays.toString(argv));
779+
777780
if (cfg == null) {
778781
cfg = new Configuration();
779782
}

opengrok-indexer/src/main/java/org/opengrok/indexer/util/OptionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ protected String candidate(String option, int index) throws ParseException {
519519
* will cause a parse exception. If this is a scan parser, unrecognized
520520
* options are ignored.
521521
*
522-
* @param args
522+
* @param args argument vector
523523
* @return non-option parameters, or all arguments after "--" encountered.
524524
* @throws ParseException
525525
*/

0 commit comments

Comments
 (0)