public static void printUsage ( ParseException e , String cmdLine , Options options ) { System . err . println ( e . getMessage ( ) ) ; // automatically generate the help statement HelpFormatter formatter = new HelpFormatter ( ) ; PrintWriter pw = new PrintWriter ( System . err ) ; formatter . printUsage ( pw , cmdLine . length ( ) + 7 , cmdLine , options ) ; pw . flush ( ) ; }
Prints the command line usage to the std error output