parse-my-command 0.5.52 → 0.5.54
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/README.md +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ More examples can be found in the [examples](/examples/) directory.
|
|
|
59
59
|
## Error Handling
|
|
60
60
|
|
|
61
61
|
`partialParse` throws in the following cases:
|
|
62
|
+
|
|
62
63
|
1. In all cases where your `Command` with the
|
|
63
64
|
[default `exitCallback`](https://github.com/tj/commander.js#override-exit-and-output-handling)
|
|
64
65
|
would throw an error (e.g. when displaying help)
|
|
@@ -72,6 +73,7 @@ More examples can be found in the [examples](/examples/) directory.
|
|
|
72
73
|
This module works by creating a (best-effort) clone of the command and its
|
|
73
74
|
subcommands, setting the actions to no-op functions, and then parsing the
|
|
74
75
|
`argv` with the cloned instance. This approach might have some limitations:
|
|
76
|
+
|
|
75
77
|
1. The implementation might break if Commander.js changes its internals
|
|
76
78
|
2. Custom argument and option processors are assumed to be pure functions
|
|
77
79
|
3. Hook listeners attached to the commands will be ignored
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse-my-command",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.54",
|
|
4
4
|
"description": "Parse argv with Commander.js without executing the command",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parser",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"camelcase": "^10.0.0",
|
|
59
|
-
"commander": "^15.
|
|
59
|
+
"commander": "^15.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@biomejs/biome": "^2.6.
|
|
62
|
+
"@biomejs/biome": "^2.6.6",
|
|
63
63
|
"@types/bun": "^1.4.4",
|
|
64
64
|
"typescript": "^7.0.2"
|
|
65
65
|
},
|