static int doParse ( String [ ] args , ExecS_CliParser cli , String appName ) { Exception err = cli . parse ( args ) ; if ( err != null ) { System . err . println ( appName + ": error parsing command line -> " + err . getMessage ( ) ) ; return - 1 ; } return 0 ; }
Parses command line arguments for a given CLI parser .