try
{
final ArgHelperOptionsInfo optionInfo = new ArgHelperOptionsInfo( OPTIONS );
final ListIterator iter = Arrays.asList( args ).listIterator();
final ArgHelper argHelper = new ArgHelperImpl( iter, optionInfo);
final Integer port = argHelper.getInteger( "--port" );
final String host = argHelper.getString( "--host", "localhost");
final boolean interactive = argHelper.getBoolean( "--interactive", Boolean.FALSE).booleanValue();
final boolean runLocally = argHelper.getBoolean( "--localsupport", Boolean.FALSE ).booleanValue();
if ( port == null )
{
System.out.println( "USAGE: TestClient --port=<port-number>" );
System.exit( 1 );