Skip to content

Commit 7a89fd9

Browse files
committed
Format raw data
1 parent 395eaa0 commit 7a89fd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/git-stats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ var recordOpt = new Clp.Option(["record"], "Records a new commit. Don't use this
6363
, dataPathOpt
6464
, firstDayOpt
6565
, recordOpt
66+
, rawOpt
6667
])
6768
, options = null
6869
;
@@ -148,6 +149,9 @@ if (!authorsOpt.is_provided || globalActivityOpt.is_provided) {
148149

149150
function display (err, data) {
150151
if (err) { return Logger.log(err, "error"); }
152+
if (typeof data !== "string") {
153+
data = JSON.stringify(data);
154+
}
151155
process.stdout.write(data + "\n");
152156
}
153157

0 commit comments

Comments
 (0)