Support CLI pulsar tokens for concise description.
### Motivation
Current help description of `bin/pulsar tokens` is redundancy when only specified one subcommand.
### Modifications
Print corresponding usage according to the parsed command.
@@ -304,8 +304,9 @@ public class TokensCliUtils {
System.exit(1);
}
} catch (Exception e) {
- jcommander.usage();
System.err.println(e);
+ String chosenCommand = jcommander.getParsedCommand();
+ jcommander.usage(chosenCommand);
System.exit(1);
}
