Do not output the argv anymore. Show the graph.

This commit is contained in:
Ionică Bizău 2015-01-26 11:28:51 +02:00
parent 1917b64d6f
commit 4a9ef5c7a0
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ var GitStats = require("../lib");
switch (process.argv[2]) {
case "--record":
var data = process.argv[3].replace(/^\"|\"$/g, "");
console.log(process.argv);
try {
data = JSON.parse(data);
} catch (e) {
@ -24,7 +23,7 @@ switch (process.argv[2]) {
);
break;
default:
GitStats.get(function (err, data) {
GitStats.graph({}, function (err, data) {
console.log(err || data);
});
break;