src/main/java/de/vandermeer/execs/options/ExecS_CliParser.java
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;
	}
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;
	}
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.
@param args command line arguments to parse
@param cli CLI object with options to parse for
@param appName application name for error messages
@return 0 on success, -1 on error with error being logged
Parses command line arguments for a given CLI parser .