@trenskow/arguments-parser 0.3.64 → 0.3.65
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 +10 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -110,7 +110,7 @@ const argumentsParser = (
|
|
|
110
110
|
if (args[0] === '--help') printHelp();
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
const result = {
|
|
114
114
|
get base() {
|
|
115
115
|
return base;
|
|
116
116
|
},
|
|
@@ -420,9 +420,18 @@ const argumentsParser = (
|
|
|
420
420
|
return printHelp(error);
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
+
},
|
|
424
|
+
help(error) {
|
|
425
|
+
printHelp(error);
|
|
423
426
|
}
|
|
424
427
|
};
|
|
425
428
|
|
|
429
|
+
result.then = (...args) => {
|
|
430
|
+
return result.empty().then(...args);
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
return result;
|
|
434
|
+
|
|
426
435
|
};
|
|
427
436
|
|
|
428
437
|
export default argumentsParser;
|