@trenskow/arguments-parser 0.3.78 → 0.3.79

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -217,6 +217,10 @@ const argumentsParser = (
217
217
 
218
218
  });
219
219
 
220
+ shortOptions = Object.fromEntries(
221
+ Object.entries(shortOptions)
222
+ .map(([key, value]) => [value, key]));
223
+
220
224
  if (allKeyPaths.length) {
221
225
 
222
226
  helpOptions = () => {
@@ -293,10 +297,6 @@ const argumentsParser = (
293
297
  continue;
294
298
  }
295
299
 
296
- shortOptions = Object.fromEntries(
297
- Object.entries(shortOptions)
298
- .map(([key, value]) => [value, key]));
299
-
300
300
  let key = args[idx].slice(1);
301
301
 
302
302
  if (args[idx].slice(1, 2) === '-') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.3.78",
3
+ "version": "0.3.79",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",