@optique/core 1.0.0-dev.1970 → 1.0.0-dev.1972
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/completion.cjs +1 -1
- package/dist/completion.js +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.js +1 -1
- package/package.json +1 -1
package/dist/completion.cjs
CHANGED
|
@@ -308,7 +308,7 @@ const zsh = {
|
|
|
308
308
|
generateScript(programName, args = []) {
|
|
309
309
|
validateProgramName(programName);
|
|
310
310
|
const escapedArgs = args.map((arg) => `'${arg.replace(/'/g, "'\\''")}'`).join(" ");
|
|
311
|
-
return
|
|
311
|
+
return `#compdef ${programName}
|
|
312
312
|
function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
|
|
313
313
|
local current="\$words[CURRENT]"
|
|
314
314
|
local -a prev
|
package/dist/completion.js
CHANGED
|
@@ -308,7 +308,7 @@ const zsh = {
|
|
|
308
308
|
generateScript(programName, args = []) {
|
|
309
309
|
validateProgramName(programName);
|
|
310
310
|
const escapedArgs = args.map((arg) => `'${arg.replace(/'/g, "'\\''")}'`).join(" ");
|
|
311
|
-
return
|
|
311
|
+
return `#compdef ${programName}
|
|
312
312
|
function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
|
|
313
313
|
local current="\$words[CURRENT]"
|
|
314
314
|
local -a prev
|
package/dist/primitives.cjs
CHANGED
|
@@ -473,7 +473,7 @@ function option(...args) {
|
|
|
473
473
|
if (context.buffer.length < 2) return {
|
|
474
474
|
success: false,
|
|
475
475
|
consumed: 1,
|
|
476
|
-
error: require_message.message
|
|
476
|
+
error: options.errors?.endOfInput ?? require_message.message`${require_message.optionName(context.buffer[0])} requires ${require_message.metavar(valueParser.metavar)}.`
|
|
477
477
|
};
|
|
478
478
|
const rawInput = context.buffer[1];
|
|
479
479
|
return require_mode_dispatch.dispatchByMode(mode, () => {
|
package/dist/primitives.js
CHANGED
|
@@ -473,7 +473,7 @@ function option(...args) {
|
|
|
473
473
|
if (context.buffer.length < 2) return {
|
|
474
474
|
success: false,
|
|
475
475
|
consumed: 1,
|
|
476
|
-
error: message
|
|
476
|
+
error: options.errors?.endOfInput ?? message`${optionName(context.buffer[0])} requires ${metavar(valueParser.metavar)}.`
|
|
477
477
|
};
|
|
478
478
|
const rawInput = context.buffer[1];
|
|
479
479
|
return dispatchByMode(mode, () => {
|