mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 21:32:10 +01:00
Do not output the argv anymore. Show the graph.
This commit is contained in:
parent
1917b64d6f
commit
4a9ef5c7a0
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue