diff --git a/assembly-stats.cpp b/assembly-stats.cpp index a6a985f..3237e58 100644 --- a/assembly-stats.cpp +++ b/assembly-stats.cpp @@ -29,17 +29,25 @@ int main(int argc, char* argv[]) for (int i = ops.infileStartIndex; i < argc; i++) { Stats s(argv[i], ops.minLength); + if (ops.outFormat == FORMAT_HUMAN) + { + if (first) + { + first = false; + } + else + { + cout << string(79, '-') << endl; + } + } + cout << s.toString(ops.outFormat); + if (ops.outFormat == FORMAT_TAB) { ops.outFormat = FORMAT_TAB_NO_HEAD; } - if (ops.outFormat == FORMAT_HUMAN && first) - { - cout << string(79, '-') << endl; - first = false; - } } return 0;