Changed the variable name

This commit is contained in:
Ionică Bizău 2015-09-13 17:36:32 +03:00
parent 7c6f0e31d3
commit 0622a48333

View file

@ -6,7 +6,7 @@ var GitStatsLib = require("../lib")
, Ul = require("ul") , Ul = require("ul")
, Moment = require("moment") , Moment = require("moment")
, Logger = require("bug-killer") , Logger = require("bug-killer")
, CLP = require("clp") , Clp = require("clp")
, Abs = require("abs") , Abs = require("abs")
, Typpy = require("typpy") , Typpy = require("typpy")
, Package = require("../package") , Package = require("../package")
@ -32,16 +32,16 @@ try {
GitStats.config = Ul.deepMerge(GitStats.config, DEFAULT_CONFIG); GitStats.config = Ul.deepMerge(GitStats.config, DEFAULT_CONFIG);
// Parse the command line arguments // Parse the command line arguments
var recordOpt = new CLP.Option(["record"], "Records a new commit. Don't use this unless you are a mad scientist. If you are a developer, just use this option as part of the module.", "data") var recordOpt = new Clp.Option(["record"], "Records a new commit. Don't use this unless you are a mad scientist. If you are a developer, just use this option as part of the module.", "data")
, sinceDateOpt = new CLP.Option(["s", "since"], "Optional start date.", "date", GitStats.config.since) , sinceDateOpt = new Clp.Option(["s", "since"], "Optional start date.", "date", GitStats.config.since)
, untilDateOpt = new CLP.Option(["u", "until"], "Optional end date.", "date", GitStats.config.until) , untilDateOpt = new Clp.Option(["u", "until"], "Optional end date.", "date", GitStats.config.until)
, authorsOpt = new CLP.Option(["a", "authors"], "Shows a pie chart with the author related contributions in the current repository.") , authorsOpt = new Clp.Option(["a", "authors"], "Shows a pie chart with the author related contributions in the current repository.")
, noAnsiOpt = new CLP.Option(["n", "no-ansi"], "Forces the tool not to use ANSI styles.") , noAnsiOpt = new Clp.Option(["n", "no-ansi"], "Forces the tool not to use ANSI styles.")
, lightOpt = new CLP.Option(["l", "light"], "Enables the light theme.") , lightOpt = new Clp.Option(["l", "light"], "Enables the light theme.")
, dataPathOpt = new CLP.Option(["d", "data"], "Sets a custom data store file.", "path", GitStats.config.path) , dataPathOpt = new Clp.Option(["d", "data"], "Sets a custom data store file.", "path", GitStats.config.path)
, globalActivityOpt = new CLP.Option(["g", "global-activity"], "Shows global activity calendar in the current repository.") , globalActivityOpt = new Clp.Option(["g", "global-activity"], "Shows global activity calendar in the current repository.")
, firstDayOpt = new CLP.Option(["f", "first-day"], "Sets the first day of the week.", "day", GitStats.config.first_day) , firstDayOpt = new Clp.Option(["f", "first-day"], "Sets the first day of the week.", "day", GitStats.config.first_day)
, parser = new CLP({ , parser = new Clp({
name: "Git Stats" name: "Git Stats"
, version: Package.version , version: Package.version
, exe: Package.name , exe: Package.name