public static void main(String[] args) throws Exception {
  CommandLine cmd=getCommandLine(args);
  String[] actualArgs=cmd.getArgs();
  if (actualArgs.length == 2) {
    System.exit(download(actualArgs[0],actualArgs[1]));
  }
 else   if (actualArgs.length == 1) {
    System.exit(validate(actualArgs[0],cmd.hasOption(OPTION_VERIFY_PRIVATE_PARAMS_EXISTS)));
  }
 else {
    startDaemon();
  }
}

public static void main ( String [ ] args ) throws Exception { CommandLine cmd = getCommandLine ( args ) ; String [ ] actualArgs = cmd . getArgs ( ) ; if ( actualArgs . length == 2 ) { System . exit ( download ( actualArgs [ 0 ] , actualArgs [ 1 ] ) ) ; } else if ( actualArgs . length == 1 ) { System . exit ( validate ( actualArgs [ 0 ] , cmd . hasOption ( OPTION_VERIFY_PRIVATE_PARAMS_EXISTS ) ) ) ; } else { startDaemon ( ) ; } }
main entry point of configuration client . based on the arguments , the client will either : 1 ) < anchor file > < configuration path > - - download and exit 2 ) < anchor file > - - download and verify 3 ) [ no args ] - - start as daemon
