@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/index.js CHANGED
@@ -1251,11 +1251,11 @@ var Args = class _Args {
1251
1251
  */
1252
1252
  get(key) {
1253
1253
  const resolvedKey = this.aliases[key] || key;
1254
- this.usedKeys.add(resolvedKey);
1254
+ const lcKey = resolvedKey.toLowerCase();
1255
+ this.usedKeys.add(lcKey);
1255
1256
  if (this.overrides[resolvedKey] !== void 0) {
1256
1257
  return this.overrides[resolvedKey];
1257
1258
  }
1258
- const lcKey = resolvedKey.toLowerCase();
1259
1259
  const lcKeyWithEnv = `${lcKey}${this.env ? `_${this.env.toLowerCase()}` : ""}`;
1260
1260
  if (this.env && this.args[lcKeyWithEnv] !== void 0) {
1261
1261
  return this.args[lcKeyWithEnv];