private static void parseArgs(String[] args){
  if (args.length < 4 || args.length > 5) {
    giveUp();
  }
  host=args[0];
  port=Integer.parseInt(args[1]);
  if (args.length == 5) {
    authzid=args[2];
    authcid=args[3];
    passwd=args[4];
  }
 else {
    authzid=null;
    authcid=args[2];
    passwd=args[3];
  }
}

private static void parseArgs ( String [ ] args ) { if ( args . length < 4 || args . length > 5 ) { giveUp ( ) ; } host = args [ 0 ] ; port = Integer . parseInt ( args [ 1 ] ) ; if ( args . length == 5 ) { authzid = args [ 2 ] ; authcid = args [ 3 ] ; passwd = args [ 4 ] ; } else { authzid = null ; authcid = args [ 2 ] ; passwd = args [ 3 ] ; } }
parse command line arguments .
