kit icon indicating copy to clipboard operation
kit copied to clipboard

`hideWithoutInput` and `miss` properties of `arg`

Open JosXa opened this issue 1 year ago • 1 comments

These are the behaviors I'd naïvely expect given the names of the config properties, which are otherwise undocumented:

// Expected: The choice is shown as soon as I type **anything**
// Actual: It shows only when the input matches the choice's name ("123").
//         You also cannot submit arbitrary inputs!
await arg('{hideWithoutInput: true}', [{name: '123', hideWithoutInput: true}]);


// Expected: The choice is shown as soon as there is **any** input. 
// Actual: It is shown even when the input is empty.
await arg('{miss: true, hideWithoutInput: true}', [{name: '123', miss: true, hideWithoutInput: true}]);

JosXa avatar May 04 '24 18:05 JosXa

Still a thing

JosXa avatar Mar 17 '25 18:03 JosXa