@nmakarov/cli-toolkit 0.8.0 → 0.9.0

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/init.cjs CHANGED
@@ -1321,11 +1321,11 @@ var Args = class _Args {
1321
1321
  */
1322
1322
  get(key) {
1323
1323
  const resolvedKey = this.aliases[key] || key;
1324
- this.usedKeys.add(resolvedKey);
1324
+ const lcKey = resolvedKey.toLowerCase();
1325
+ this.usedKeys.add(lcKey);
1325
1326
  if (this.overrides[resolvedKey] !== void 0) {
1326
1327
  return this.overrides[resolvedKey];
1327
1328
  }
1328
- const lcKey = resolvedKey.toLowerCase();
1329
1329
  const lcKeyWithEnv = `${lcKey}${this.env ? `_${this.env.toLowerCase()}` : ""}`;
1330
1330
  if (this.env && this.args[lcKeyWithEnv] !== void 0) {
1331
1331
  return this.args[lcKeyWithEnv];