Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
KMyMoney
Commits
2f8de752
Commit
2f8de752
authored
Nov 17, 2020
by
Ralf Habacker
Browse files
tools/xea2kmt: Add --verbose options for showing processing information
CCBUG:429229 (cherry picked from commit
0c37dba7
)
parent
b67926ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/xea2kmt.cpp
View file @
2f8de752
...
...
@@ -49,6 +49,7 @@ QDebug operator <<(QDebug out, const QXmlStreamAttribute &a)
}
static
bool
debug
=
false
;
static
bool
verbose
=
false
;
static
bool
withID
=
false
;
static
bool
noLevel1Names
=
false
;
static
bool
withTax
=
false
;
...
...
@@ -558,7 +559,7 @@ int convertFileStructure(const QString &indir, const QString &outdir)
// process templates
foreach
(
const
QString
&
file
,
files
)
{
if
(
debug
)
if
(
debug
||
verbose
)
qDebug
()
<<
"processing"
<<
file
;
// create output file dir
...
...
@@ -604,6 +605,7 @@ int main(int argc, char *argv[])
qWarning
()
<<
" --help - this page"
;
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
()
<<
" --verbose - output processing information"
;
qWarning
()
<<
" --with-id - write account id attribute"
;
qWarning
()
<<
" --with-tax-related - parse and export gnucash 'tax-related' flag"
;
qWarning
()
<<
" --in-dir <dir> - search for gnucash templates files in <dir>"
;
...
...
@@ -620,6 +622,8 @@ int main(int argc, char *argv[])
QString
arg
=
QLatin1String
(
argv
[
i
]);
if
(
arg
==
"--debug"
)
debug
=
true
;
else
if
(
arg
==
"--verbose"
)
verbose
=
true
;
else
if
(
arg
==
"--with-id"
)
withID
=
true
;
else
if
(
arg
==
"--no-level1-names"
)
...
...
Ralf Habacker
@habacker
mentioned in commit
66bfebd8
·
Nov 18, 2020
mentioned in commit
66bfebd8
mentioned in commit 66bfebd8b0746685dbe6409d608a86a0de54a820
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment