Format raw data

This commit is contained in:
Ionică Bizău 2015-10-11 12:30:38 +03:00
parent 395eaa0942
commit 7a89fd9f72
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,7 @@ var recordOpt = new Clp.Option(["record"], "Records a new commit. Don't use this
, dataPathOpt
, firstDayOpt
, recordOpt
, rawOpt
])
, options = null
;
@ -148,6 +149,9 @@ if (!authorsOpt.is_provided || globalActivityOpt.is_provided) {
function display (err, data) {
if (err) { return Logger.log(err, "error"); }
if (typeof data !== "string") {
data = JSON.stringify(data);
}
process.stdout.write(data + "\n");
}