static Namespace parseArgs ( String [ ] args , List < String > unknown ) { ArgumentParser parser = createParser ( ) ; Namespace namespace = null ; try { namespace = parser . parseKnownArgs ( args , unknown ) ; } catch ( ArgumentParserException e ) { parser . handleError ( e ) ; System . exit ( 1 ) ; } return namespace ; }
Parses the command line arguments returning an argparse4j namespace .