Skip to content

Commit

Permalink
Support CLI pulsar tokens for concise description. (apache#6037)
Browse files Browse the repository at this point in the history
### Motivation

Current help description of `bin/pulsar tokens` is redundancy when only specified one subcommand.

### Modifications

Print corresponding usage according to the parsed command.
  • Loading branch information
murong00 authored and sijie committed Jan 24, 2020
1 parent 68c33a7 commit 8f62eb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ public static void main(String[] args) throws Exception {
System.exit(1);
}
} catch (Exception e) {
jcommander.usage();
System.err.println(e);
String chosenCommand = jcommander.getParsedCommand();
jcommander.usage(chosenCommand);
System.exit(1);
}

Expand Down

0 comments on commit 8f62eb5

Please sign in to comment.