"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var gitLogScraper_1 = __importDefault(require("./gitLogScraper"));
var HELP = "\nDumps git log json for a file or directory.\n\nusage: \n  npx @git-temporal/git-log-scraper <pathToGitDirOrFile>\n\nexamples:\n  # get log data for current directory in a git repo\n  npx @git-temporal/git-log-scraper .\n  # get log data for a file in a git repo\n  npx @git-temporal/git-log-scraper src/someFile.js\n\n";
debugger;
var path = process.argv[2];
if (!path || path == '--help') {
    console.log(HELP);
    process.exit(1);
}
var commitHistory = gitLogScraper_1.default(path);
console.warn("parsed " + commitHistory.length + " commits");
console.log(JSON.stringify(commitHistory, null, 2));
