Commit 656dcba3 authored by Wouter's avatar Wouter

Show output path before writing files

parent 4d482816
......@@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "cli/introspectorcli.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QStringList>
#include <QtCore/QFile>
#include <QtCore/QDir>
#include <QtCore/QtDebug>
#include "lib/introspector.h"
......@@ -59,11 +59,15 @@ void IntrospectorCli::execute()
return;
}
}
else {
outDir = QDir::currentPath();
}
if (!i.load(file)) {
qApp->exit(2);
}
qDebug() << "Writing files to" << outDir;
i.writeAll(outDir);
qApp->exit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment