@trenskow/arguments-parser 0.2.9 → 0.2.11

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 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -280,6 +280,10 @@ const argumentsParser = ({ args = process.argv.slice(2), argvLevel = 0, placehol
280
280
  rest
281
281
  });
282
282
 
283
+ },
284
+ pop: async () => {
285
+ if (args.length === 0) return;
286
+ return args.shift();
283
287
  }
284
288
  };
285
289
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "homepage": "https://github.com/trenskow/arguments-parser#readme",
26
26
  "dependencies": {
27
27
  "@trenskow/caseit": "^1.4.6",
28
- "@trenskow/print": "^0.1.5",
28
+ "@trenskow/print": "^0.1.6",
29
29
  "isvalid": "^4.1.27"
30
30
  },
31
31
  "devDependencies": {