hangc0276 commented on a change in pull request #12315:
URL: https://github.com/apache/pulsar/pull/12315#discussion_r726680814
##########
File path:
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/PulsarAdminTool.java
##########
@@ -285,11 +292,12 @@ boolean run(String[] args, Function<PulsarAdminBuilder, ?
extends PulsarAdmin> a
public static void main(String[] args) throws Exception {
lastExitCode = 0;
- String configFile = null;
- if (args.length > 0) {
- configFile = args[0];
- args = Arrays.copyOfRange(args, 1, args.length);
+ if (args.length == 0) {
Review comment:
`bin/pulsar-admin` command will use `conf/client.conf` by default, and
if you want to change the configuration file, you should define
PULSAR_CLIENT_CONF. I doubt how the `null pointer exception` or `file not
found exception` occurs?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]