public static boolean initialize( String[] args )
{
boolean criticalError = false;
Arguments arguments = new Arguments( args );
System.out.println( arguments.toString( ) );
documents = arguments.getFreeArgs( );
alwaysUsingContext = arguments.contains( VALID_ARGS[ ARG_ALL_CONTEXT ] );
usingContext = ! arguments.contains( VALID_ARGS[ ARG_NO_CONTEXT ] );
usingEveryContext = arguments.contains( VALID_ARGS[ ARG_EVERY_CONTEXT ] );
discardingTricky = arguments.contains( VALID_ARGS[ ARG_DISCARD_TRICKY ] );
matchingIncludeOnly = arguments.contains( VALID_ARGS[ ARG_MATCH_INCLUDE_ONLY ] );
usingParsableOutput = arguments.contains( VALID_ARGS[ ARG_PARSABLE_OUTPUT ] );
showingTable = ! arguments.contains( VALID_ARGS[ ARG_NO_TABLE ] );
List< String > includeLists = arguments.get( VALID_ARGS[ ARG_INCLUDE_LIST ] );
List< String > excludeLists = arguments.get( VALID_ARGS[ ARG_EXCLUDE_LIST ] );
List< String > trickyLists = arguments.get( VALID_ARGS[ ARG_TRICKY_LIST ] );
List< String > maxThreadsArgs = arguments.get( VALID_ARGS[ ARG_MAX_THREADS ] );
if( maxThreadsArgs != null && maxThreadsArgs.size( ) != 0 )
{
String lastArg = maxThreadsArgs.get( maxThreadsArgs.size( ) - 1 );