Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideWithoutInput and miss properties of arg #1468

Open
JosXa opened this issue May 4, 2024 · 0 comments
Open

hideWithoutInput and miss properties of arg #1468

JosXa opened this issue May 4, 2024 · 0 comments

Comments

@JosXa
Copy link
Contributor

JosXa commented May 4, 2024

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}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant