Support CLI pulsar-client for concise description.
### Motivation
Fixes [#3364](https://github.com/apache/pulsar/issues/3364)
### Modifications
Print corresponding usage according to the parsed command.
@@ -134,8 +134,9 @@ public class PulsarClientTool {
}
} catch (Exception e) {
System.out.println(e.getMessage());
+ String chosenCommand = commandParser.getParsedCommand();
if (e instanceof ParameterException) {
- commandParser.usage();
+ commandParser.usage(chosenCommand);
} else {
e.printStackTrace();
}
