handle command line arguments directly from QCoreApplication