@aiusage/cli 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2760,6 +2760,8 @@ async function runSync(flags) {
|
|
|
2760
2760
|
targetDates = [requestedDate];
|
|
2761
2761
|
else if (fromDate)
|
|
2762
2762
|
targetDates = buildDateRange(fromDate, toDate ?? getTodayDate());
|
|
2763
|
+
else if (flags.today === !0)
|
|
2764
|
+
targetDates = [getTodayDate()];
|
|
2763
2765
|
else {
|
|
2764
2766
|
let lookbackDays = typeof flags.lookback == "string" ? parsePositiveInt2(flags.lookback, "--lookback") : defaultLookbackDays(config);
|
|
2765
2767
|
targetDates = getClosedDates(lookbackDays), targetDates.push(getTodayDate());
|