probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.19k stars 408 forks source link

Arguments are not being logged correctly #111

Open ribtoks opened 7 years ago

ribtoks commented 7 years ago

When you cycle though arguments some of them are not being logged because of LogDebug() queries the debug level which might not be initialized (via arguments) first. So if you have -verbose=3 as your last arguments none of the previous arguments will be printed in the loop in main.cpp

Fix would require using qDebug() directly or printing/memorizing parsed arguments elsewhere.

Thanks

P.S. Wasted few hours to setup/compile everything because I thought linuxdeployqt is ignoring the -no-strip options since it wasn't printed

probonopd commented 7 years ago

Possibly we may have inherited this from macdeployqt which this tool is based on. Do you think you could send a PR? Thanks.