Commit 66bfebd8 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

tools/xea2kmt: Add --verbose options for showing processing information

CCBUG:429229

(cherry picked from commit 2f8de752)
parent ebc2f092
...@@ -49,6 +49,7 @@ QDebug operator <<(QDebug out, const QXmlStreamAttribute &a) ...@@ -49,6 +49,7 @@ QDebug operator <<(QDebug out, const QXmlStreamAttribute &a)
} }
static bool debug = false; static bool debug = false;
static bool verbose = false;
static bool withID = false; static bool withID = false;
static bool noLevel1Names = false; static bool noLevel1Names = false;
static bool withTax = false; static bool withTax = false;
...@@ -558,7 +559,7 @@ int convertFileStructure(const QString &indir, const QString &outdir) ...@@ -558,7 +559,7 @@ int convertFileStructure(const QString &indir, const QString &outdir)
// process templates // process templates
foreach (const QString &file, files) foreach (const QString &file, files)
{ {
if (debug) if (debug || verbose)
qDebug() << "processing" << file; qDebug() << "processing" << file;
// create output file dir // create output file dir
...@@ -604,6 +605,7 @@ int main(int argc, char *argv[]) ...@@ -604,6 +605,7 @@ int main(int argc, char *argv[])
qWarning() << " --help - this page"; qWarning() << " --help - this page";
qWarning() << " --no-level1-names - do not export account names for top level accounts"; qWarning() << " --no-level1-names - do not export account names for top level accounts";
qWarning() << " --prefix-name-with-code - prefix account name with account code if present"; qWarning() << " --prefix-name-with-code - prefix account name with account code if present";
qWarning() << " --verbose - output processing information";
qWarning() << " --with-id - write account id attribute"; qWarning() << " --with-id - write account id attribute";
qWarning() << " --with-tax-related - parse and export gnucash 'tax-related' flag"; qWarning() << " --with-tax-related - parse and export gnucash 'tax-related' flag";
qWarning() << " --in-dir <dir> - search for gnucash templates files in <dir>"; qWarning() << " --in-dir <dir> - search for gnucash templates files in <dir>";
...@@ -620,6 +622,8 @@ int main(int argc, char *argv[]) ...@@ -620,6 +622,8 @@ int main(int argc, char *argv[])
QString arg = QLatin1String(argv[i]); QString arg = QLatin1String(argv[i]);
if (arg == "--debug") if (arg == "--debug")
debug = true; debug = true;
else if (arg == "--verbose")
verbose = true;
else if (arg == "--with-id") else if (arg == "--with-id")
withID = true; withID = true;
else if (arg == "--no-level1-names") else if (arg == "--no-level1-names")
......
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