@optique/core 1.1.11 → 1.1.12
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/dist/primitives.cjs +4 -4
- package/dist/primitives.js +4 -4
- package/package.json +2 -2
package/dist/primitives.cjs
CHANGED
|
@@ -251,7 +251,7 @@ function* getSuggestionsWithDependency(valueParser, prefix, dependencyRegistry,
|
|
|
251
251
|
* @internal
|
|
252
252
|
*/
|
|
253
253
|
function* suggestOptionSync(optionNames$1, valueParser, hidden, description, context, prefix) {
|
|
254
|
-
if (hidden) return;
|
|
254
|
+
if (hidden || context.optionsTerminated) return;
|
|
255
255
|
const equalsIndex = prefix.indexOf("=");
|
|
256
256
|
if (equalsIndex >= 0) {
|
|
257
257
|
const optionPart = prefix.slice(0, equalsIndex);
|
|
@@ -336,7 +336,7 @@ async function* getSuggestionsWithDependencyAsync(valueParser, prefix, dependenc
|
|
|
336
336
|
* @internal
|
|
337
337
|
*/
|
|
338
338
|
async function* suggestOptionAsync(optionNames$1, valueParser, hidden, description, context, prefix) {
|
|
339
|
-
if (hidden) return;
|
|
339
|
+
if (hidden || context.optionsTerminated) return;
|
|
340
340
|
const equalsIndex = prefix.indexOf("=");
|
|
341
341
|
if (equalsIndex >= 0) {
|
|
342
342
|
const optionPart = prefix.slice(0, equalsIndex);
|
|
@@ -915,8 +915,8 @@ function flag(...args) {
|
|
|
915
915
|
error: require_message.message`${require_message.optionNames(optionNames$1)}: ${state.error}`
|
|
916
916
|
};
|
|
917
917
|
},
|
|
918
|
-
suggest(
|
|
919
|
-
if (require_usage.isSuggestionHidden(options.hidden)) return [];
|
|
918
|
+
suggest(context, prefix) {
|
|
919
|
+
if (require_usage.isSuggestionHidden(options.hidden) || context.optionsTerminated) return [];
|
|
920
920
|
const suggestions = [];
|
|
921
921
|
if (prefix.startsWith("--") || prefix.startsWith("-") || prefix.startsWith("/") || prefix.startsWith("+")) {
|
|
922
922
|
for (const optionName$1 of optionNames$1) if (optionName$1.startsWith(prefix)) {
|
package/dist/primitives.js
CHANGED
|
@@ -251,7 +251,7 @@ function* getSuggestionsWithDependency(valueParser, prefix, dependencyRegistry,
|
|
|
251
251
|
* @internal
|
|
252
252
|
*/
|
|
253
253
|
function* suggestOptionSync(optionNames$1, valueParser, hidden, description, context, prefix) {
|
|
254
|
-
if (hidden) return;
|
|
254
|
+
if (hidden || context.optionsTerminated) return;
|
|
255
255
|
const equalsIndex = prefix.indexOf("=");
|
|
256
256
|
if (equalsIndex >= 0) {
|
|
257
257
|
const optionPart = prefix.slice(0, equalsIndex);
|
|
@@ -336,7 +336,7 @@ async function* getSuggestionsWithDependencyAsync(valueParser, prefix, dependenc
|
|
|
336
336
|
* @internal
|
|
337
337
|
*/
|
|
338
338
|
async function* suggestOptionAsync(optionNames$1, valueParser, hidden, description, context, prefix) {
|
|
339
|
-
if (hidden) return;
|
|
339
|
+
if (hidden || context.optionsTerminated) return;
|
|
340
340
|
const equalsIndex = prefix.indexOf("=");
|
|
341
341
|
if (equalsIndex >= 0) {
|
|
342
342
|
const optionPart = prefix.slice(0, equalsIndex);
|
|
@@ -915,8 +915,8 @@ function flag(...args) {
|
|
|
915
915
|
error: message`${optionNames(optionNames$1)}: ${state.error}`
|
|
916
916
|
};
|
|
917
917
|
},
|
|
918
|
-
suggest(
|
|
919
|
-
if (isSuggestionHidden(options.hidden)) return [];
|
|
918
|
+
suggest(context, prefix) {
|
|
919
|
+
if (isSuggestionHidden(options.hidden) || context.optionsTerminated) return [];
|
|
920
920
|
const suggestions = [];
|
|
921
921
|
if (prefix.startsWith("--") || prefix.startsWith("-") || prefix.startsWith("/") || prefix.startsWith("+")) {
|
|
922
922
|
for (const optionName$1 of optionNames$1) if (optionName$1.startsWith(prefix)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
},
|
|
197
197
|
"sideEffects": false,
|
|
198
198
|
"devDependencies": {
|
|
199
|
-
"@optique/env": "1.1.
|
|
199
|
+
"@optique/env": "1.1.12",
|
|
200
200
|
"@types/node": "^24.0.0",
|
|
201
201
|
"fast-check": "^4.7.0",
|
|
202
202
|
"tsdown": "^0.13.0",
|