Hidden options are show during completion
envgap__yargs__yargs-2142
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
2d1136d303ea805685a973ded62f52efd49b78b9- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
yargs/yargs #2142 · read the original issue
Hidden option are being displayed during auto complete. I'd expect that these are also hidden when using auto complete.
```ts
await localYargs
.scriptName('ng')
....
.option('json-help', {
describe: 'Show help in JSON format.',
implies: ['help'],
hidden: true,
type: 'boolean',
})
...
```
```bash
ng doc --
--help -- Shows a help message for this command in the console.
--json-help -- Show help in JSON format.
```
**Yargs version:** 17.3.104 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]