shirenchuang opened a new issue, #7155: URL: https://github.com/apache/rocketmq/issues/7155
### Is Your Feature Request Related to a Problem? 发现目前的脚步在执行的时候,不会打印异常日志,而是统一打印 --help的信息; 这样对应使用者来说不是很友好;看看下面的例子 It is found that when the current steps are executed, the exception log will not be printed, but the --help information will be printed uniformly; This is not very user-friendly; see the example below  如果在执行的时候提示一下我是什么问题导致不能按照预期执行就比较好一点; 比如截图中的问题是缺少了 `-b` 或者 `-c` 的参数 It would be better if I was reminded of the problem that caused me to fail to execute as expected during execution; For example, the problem in the screenshot is that the parameters of `-b` or `-c` are missing ### Describe the Solution You'd Like ServerUtil#parseCmdLine 方法中对异常信息打印一下   ### Describe Alternatives You've Considered public static CommandLine parseCmdLine(final String appName, String[] args, Options options, CommandLineParser parser) { HelpFormatter hf = new HelpFormatter(); hf.setWidth(110); CommandLine commandLine = null; try { commandLine = parser.parse(options, args); if (commandLine.hasOption('h')) { hf.printHelp(appName, options, true); System.exit(0); } } catch (ParseException e) { System.err.println(e.getMessage()); hf.printHelp(appName, options, true); System.exit(1); } return commandLine; } ### Additional Context _No response_ -- 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]
