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

Hidden options are show during completion #2142

Closed
alan-agius4 opened this issue Mar 3, 2022 · 0 comments · Fixed by #2143 or #2147
Closed

Hidden options are show during completion #2142

alan-agius4 opened this issue Mar 3, 2022 · 0 comments · Fixed by #2143 or #2147
Labels

Comments

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Mar 3, 2022

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

@alan-agius4 alan-agius4 changed the title Hidden options are show during complication Hidden options are show during completion Mar 3, 2022
alan-agius4 added a commit to alan-agius4/yargs that referenced this issue Mar 7, 2022
bcoe added a commit that referenced this issue Mar 19, 2022
Fixes: #2142

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants