Skip to content

Commit

Permalink
Support CLI pulsar-client for concise description. (apache#3381)
Browse files Browse the repository at this point in the history
### Motivation
Fixes [apache#3364](apache#3364)

### Modifications

Print corresponding usage according to the parsed command.
  • Loading branch information
murong00 authored and sijie committed Jan 20, 2019
1 parent 9be5996 commit d94866a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ public int run(String[] args) {
}
} catch (Exception e) {
System.out.println(e.getMessage());
String chosenCommand = commandParser.getParsedCommand();
if (e instanceof ParameterException) {
commandParser.usage();
commandParser.usage(chosenCommand);
} else {
e.printStackTrace();
}
Expand Down

0 comments on commit d94866a

Please sign in to comment.