(CommandLine cli)
| 468 | BLOCK_UNKNOWN_OPTION.getLongOpt(), cli.getOptionValue(BLOCK_UNKNOWN_OPTION)); |
| 469 | ensureArgumentIsValidBooleanIfPresent( |
| 470 | UPDATE_INCLUDE_FILE_OPTION.getLongOpt(), cli.getOptionValue(UPDATE_INCLUDE_FILE_OPTION)); |
| 471 | |
| 472 | String type = cli.getOptionValue(TYPE_OPTION, "basicAuth"); |
| 473 | // switch structure is here to support future auth options like oAuth |
| 474 | if (type.equals("basicAuth")) { |
| 475 | boolean updateIncludeFileOnly = |
| 476 | Boolean.parseBoolean(cli.getOptionValue(UPDATE_INCLUDE_FILE_OPTION, "false")); |
| 477 | String zkHost = null; |
| 478 | if (!updateIncludeFileOnly) { |
| 479 | try { |
| 480 | zkHost = CLIUtils.getZkHost(cli); |
| 481 | } catch (Exception e) { |
| 482 | echoIfVerbose("Could not resolve ZooKeeper host: " + e.getMessage()); |
| 483 | } |
| 484 | } |
| 485 | AuthParams params = |
nothing calls this directly
no test coverage detected