@@ -155,9 +155,11 @@ public static void main(String[] argv) {
155
155
helpStream .println (helpUsage );
156
156
if (help > 1 ) {
157
157
helpStream .println (AnalyzerGuruHelp .getUsage ());
158
- helpStream .println (ConfigurationHelp .getSamples ());
158
+ helpStream .print (ConfigurationHelp .getSamples ());
159
159
}
160
160
if (help > 2 ) {
161
+ helpStream .println ("Ctags command-line:" );
162
+ helpStream .println ();
161
163
helpStream .println (getCtagsCommand ());
162
164
}
163
165
System .exit (status );
@@ -423,7 +425,7 @@ public static String[] parseOptions(String[] argv) throws ParseException {
423
425
424
426
parser .on (HELP_OPT_3 , Indexer .HELP_OPT_2 , HELP_OPT_1 ,
425
427
"Display this usage summary." ,
426
- " Repeat once for configuration.xml samples." ,
428
+ " Repeat once for AnalyzerGuru details and configuration.xml samples." ,
427
429
" Repeat twice for ctags command-line." ).Do (v -> {
428
430
++help ;
429
431
helpUsage = parser .getUsage ();
@@ -649,12 +651,6 @@ public static String[] parseOptions(String[] argv) throws ParseException {
649
651
LoggerUtil .setBaseConsoleLogLevel (Level .WARNING );
650
652
});
651
653
652
- parser .on ("--repository" , "=path/to/repository" ,
653
- "Path (relative to the source root) to a repository for generating" ,
654
- "history (if -H,--history is on). By default all discovered repositories" ,
655
- "are history-eligible; using --repository limits to only those specified." ,
656
- "Option may be repeated." ).Do (v -> repositories .add ((String ) v ));
657
-
658
654
parser .on ("-R /path/to/configuration" ,
659
655
"Read configuration from the specified file." ).Do (v -> {
660
656
// Already handled above. This populates usage.
@@ -687,6 +683,12 @@ public static String[] parseOptions(String[] argv) throws ParseException {
687
683
"If set to on, makes history indexing slower for repositories" ,
688
684
"with lots of renamed files." ).Do (v -> cfg .setHandleHistoryOfRenamedFiles ((Boolean ) v ));
689
685
686
+ parser .on ("--repository" , "=path/to/repository" ,
687
+ "Path (relative to the source root) to a repository for generating" ,
688
+ "history (if -H,--history is on). By default all discovered repositories" ,
689
+ "are history-eligible; using --repository limits to only those specified." ,
690
+ "Option may be repeated." ).Do (v -> repositories .add ((String ) v ));
691
+
690
692
parser .on ("-S" , "--search" ,
691
693
"Search for source repositories under -s,--source, and add them." ).Do (v ->
692
694
searchRepositories = true );
@@ -763,14 +765,14 @@ public static String[] parseOptions(String[] argv) throws ParseException {
763
765
LoggerUtil .setBaseConsoleLogLevel (Level .INFO );
764
766
});
765
767
766
- parser .on ("--webappCtags" , "=on|off" , ON_OFF , Boolean .class ,
767
- "Web application should run ctags when necessary. Default is off." ).
768
- Do (v -> cfg .setWebappCtags ((Boolean ) v ));
769
-
770
768
parser .on ("-W" , "--writeConfig" , "=/path/to/configuration" ,
771
769
"Write the current configuration to the specified file" ,
772
770
"(so that the web application can use the same configuration)" )
773
771
.Do (configFile -> configFilename = (String ) configFile );
772
+
773
+ parser .on ("--webappCtags" , "=on|off" , ON_OFF , Boolean .class ,
774
+ "Web application should run ctags when necessary. Default is off." ).
775
+ Do (v -> cfg .setWebappCtags ((Boolean ) v ));
774
776
});
775
777
776
778
// Need to read the configuration file first
0 commit comments