allure --version 异常io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameter
执行allure --version时,有时会出现如下异常;
io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameter
s: [--version]
at io.airlift.airline.Cli.validate(Cli.java:148)
at io.airlift.airline.Cli.parse(Cli.java:116)
at io.airlift.airline.Cli.parse(Cli.java:97)
at ru.yandex.qatools.allure.CommandLine.main(CommandLine.java:44)
原因总结:
1.jdk版本低于要求版本,目前jdk1.8即可
2.如果jdk版本正确则需要查看环境变量的配置,在path中%ALLURE%\bin;%ALLURE%\lib;将这些放在系统路径的前面,一般即可解决;