@trenskow/arguments-parser 0.1.5 → 0.1.7
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/lib/index.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -69,7 +69,7 @@ export default (args = process.argv.slice(2), argvLevel = 0) => {
|
|
|
69
69
|
if (!commands[tool]) printHelp(new Error(`${args[0]}: Command not found.`));
|
|
70
70
|
|
|
71
71
|
try {
|
|
72
|
-
await commands[tool](...args.slice(1));
|
|
72
|
+
return await commands[tool](...args.slice(1));
|
|
73
73
|
} catch (error) {
|
|
74
74
|
print.err(`${error.stack}`);
|
|
75
75
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/arguments-parser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Yet another arguments parser.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@trenskow/caseit": "^1.4.6",
|
|
28
28
|
"@trenskow/print": "^0.1.1",
|
|
29
|
-
"isvalid": "^4.1.
|
|
29
|
+
"isvalid": "^4.1.25"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@eslint/eslintrc": "^3.2.0",
|