@optique/core 1.4.0-dev.2981 → 1.4.0-dev.2992
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/package.json +2 -2
- package/skills/optique/SKILL.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/core",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2992",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
},
|
|
270
270
|
"sideEffects": false,
|
|
271
271
|
"devDependencies": {
|
|
272
|
-
"@optique/env": "1.4.0-dev.
|
|
272
|
+
"@optique/env": "1.4.0-dev.2992+c4f1ddf9",
|
|
273
273
|
"@types/node": "^24.0.0",
|
|
274
274
|
"fast-check": "^4.7.0",
|
|
275
275
|
"tsdown": "^0.13.0",
|
package/skills/optique/SKILL.md
CHANGED
|
@@ -241,14 +241,14 @@ Common mistakes checklist
|
|
|
241
241
|
`optional()` or `withDefault()` to allow no matching branch.
|
|
242
242
|
- Use `or(command(...), command(...))` for mutually exclusive subcommands.
|
|
243
243
|
- Wrap required `flag("--x")` in `optional()` or `withDefault(..., false)`.
|
|
244
|
-
-
|
|
245
|
-
`nonEmpty()` when at least one value is required.
|
|
244
|
+
- `multiple(p)` accepts absence as `[]`; use `nonEmpty()` to require values.
|
|
246
245
|
- Use `seq()` only for ordered grammars; most constructs use parser priority.
|
|
247
246
|
- Use structured `message` values for errors and descriptions.
|
|
248
247
|
- Register contexts for `bindEnv()`, `bindConfig()`, `bindDerivedDefault()`,
|
|
249
248
|
and `bindKeyring()` in the runner's `contexts` option.
|
|
250
249
|
- Use `bindEnv().readFallback()` for env/default in error handlers.
|
|
251
250
|
- Enable `showEnvironment` for env-only help; set `documentation.description`.
|
|
251
|
+
- Man pages label defaults; use `showDefault`/`showChoices` to format them.
|
|
252
252
|
- Keep multi-level `dependency()` graphs; avoid duplicate one-level factories.
|
|
253
253
|
- Put runtime prompt checks in `when`, with typed `otherwise`; evaluate them
|
|
254
254
|
only at fallback, never eagerly during construction.
|