@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.js CHANGED
@@ -1295,11 +1295,11 @@ var Args = class _Args {
1295
1295
  */
1296
1296
  get(key) {
1297
1297
  const resolvedKey = this.aliases[key] || key;
1298
- this.usedKeys.add(resolvedKey);
1298
+ const lcKey = resolvedKey.toLowerCase();
1299
+ this.usedKeys.add(lcKey);
1299
1300
  if (this.overrides[resolvedKey] !== void 0) {
1300
1301
  return this.overrides[resolvedKey];
1301
1302
  }
1302
- const lcKey = resolvedKey.toLowerCase();
1303
1303
  const lcKeyWithEnv = `${lcKey}${this.env ? `_${this.env.toLowerCase()}` : ""}`;
1304
1304
  if (this.env && this.args[lcKeyWithEnv] !== void 0) {
1305
1305
  return this.args[lcKeyWithEnv];