Closed f4z3r closed 5 years ago
DeepCode analyzed this pull request. There is 1 new info report.
Click to see more details.
Is there a way to pass any argument we don't know about directly to Securify, instead of adding every option manually?
@hiqua Yes there is. Using parse_known_args()
, however, if you pass invalid flags, the wrapper will compile etc, and only throw an exception or so after the compilation when the Java executable is called (which might be like 15 seconds later). So I guess it boils down if you want the wrapper to be easy to maintain, or if you want it to catch errors straight away.
The error will be explicit enough, so I'd rather have better maintainability.
DeepCode analyzed this pull request. There are no new issues.1 info report was fixed.
Click to see more details.
@hiqua Ok so I added code to pass all unknown flags to the Java executable. I left the output validation we have right now. Do you want me to remove that? It might be interesting to leave the major flags in, just for the -h
call on the docker.
As of now, the only flags necessary for the wrapper are -v
and -q
.
The docker checks flags validity before compiling etc. It now allows the
--descriptions
flag as well.