Skip to content

Hidden options are show during completion #2142

@alan-agius4

Description

@alan-agius4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions