Hidden option are being displayed during auto complete. I'd expect that these are also hidden when using auto complete.
await localYargs
.scriptName('ng')
....
.option('json-help', {
describe: 'Show help in JSON format.',
implies: ['help'],
hidden: true,
type: 'boolean',
})
...
ng doc --
--help -- Shows a help message for this command in the console.
--json-help -- Show help in JSON format.
Yargs version: 17.3.1