Skip to content

Commit

Permalink
Merge pull request #3 from martinghunt/master
Browse files Browse the repository at this point in the history
Fix when line of dashes written in human readable output
  • Loading branch information
martinghunt committed Apr 7, 2014
2 parents 7cbab8e + 117cf34 commit e061609
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions assembly-stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e061609

Please sign in to comment.