Skip to content

Commit 2e236a1

Browse files
committed
[list-cards] Refreshing output
1 parent 70aed30 commit 2e236a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CommandLineUtilities/ProgramListCards.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ class ProgramListCards : public Program
9797
firmware % cardId;
9898

9999
table << format;
100+
std::cout << table.str();
101+
table.str("");
102+
table.clear();
100103
} else {
101104
pt::ptree cardNode;
102105

@@ -116,7 +119,7 @@ class ProgramListCards : public Program
116119
i++;
117120
}
118121

119-
if (!mOptions.jsonOut) {
122+
if (!mOptions.jsonOut && i) {
120123
table << lineFat;
121124
std::cout << table.str();
122125
} else {

0 commit comments

Comments
 (0)