]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.cpp
Add verbose option
[features.git] / src / support / filetools.cpp
index b28d81210c48283395c566dca52bd898994848cc..fcb95faca044afeb201680c3952e326093153b4f 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <config.h>
 
+#include "LyX.h"
 #include "LyXRC.h"
 
 #include "support/filetools.h"
@@ -995,6 +996,11 @@ cmd_ret const runCommand(string const & cmd)
        // pstream (process stream), with the
        // variants ipstream, opstream
 
+       if (verbose)
+               lyxerr << "\nRunning: " << cmd << endl;
+       else
+               LYXERR(Debug::INFO,"Running: " << cmd);
+
 #if defined (_WIN32)
        STARTUPINFO startup;
        PROCESS_INFORMATION process;