| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public void runImpl(CommandLine cli) throws Exception { |
| 58 | if (cli.hasOption(PRINT_ZK_SUBCOMMAND_OPTION)) { |
| 59 | String scriptCommand = cli.getArgs()[0]; |
| 60 | print( |
| 61 | "You must invoke this subcommand using the zk command. bin/solr zk " |
| 62 | + scriptCommand |
| 63 | + "."); |
| 64 | } |
| 65 | if (cli.hasOption(PRINT_LONG_ZK_USAGE_OPTION)) { |
| 66 | print("usage:"); |
| 67 | print(new ZkLsTool(runtime).getUsage()); |
| 68 | print(new ZkCpTool(runtime).getUsage()); |
| 69 | print(new ZkMvTool(runtime).getUsage()); |
| 70 | |
| 71 | print(new ConfigSetUploadTool(runtime).getUsage()); |
| 72 | print(new ConfigSetDownloadTool(runtime).getUsage()); |
| 73 | print(new ZkMkrootTool(runtime).getUsage()); |
| 74 | print(new UpdateACLTool(runtime).getUsage()); |
| 75 | print(""); |
| 76 | print( |
| 77 | "Pass --help or -h after any COMMAND to see command-specific usage information such as: ./solr zk ls --help"); |
| 78 | } |
| 79 | } |
| 80 | } |