private static void printCustomCliOptions ( Collection < CustomCommandLine < ? > > customCommandLines , HelpFormatter formatter , boolean runOptions ) { // prints options from all available command-line classes for ( CustomCommandLine cli : customCommandLines ) { formatter . setSyntaxPrefix ( " Options for " + cli . getId ( ) + " mode:" ) ; Options customOpts = new Options ( ) ; cli . addGeneralOptions ( customOpts ) ; if ( runOptions ) { cli . addRunOptions ( customOpts ) ; } formatter . printHelp ( " " , customOpts ) ; System . out . println ( ) ; } }
Prints custom cli options .