cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Generated documentation includes hidden flags for commands

Open kevinbarbour opened this issue 2 years ago • 2 comments

I am trying to generate documentation for a CLI tool that has deprecated (and hidden) command flags, and I believe the generated documentation should not contain these flags unless they are specifically set to not be hidden after being deprecated. This is the behaviour that the generation follows for hidden commands, but not hidden flags on a non-hidden command.

kevinbarbour avatar Apr 12 '22 10:04 kevinbarbour

Related https://github.com/spf13/cobra/issues/1272

johnSchnake avatar Apr 15 '22 14:04 johnSchnake

The Cobra project currently lacks enough contributors to adequately respond to all issues. This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied. - After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed. You can:
  • Make a comment to remove the stale label and show your support. The 60 days reset. - If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interseted in reopening

github-actions[bot] avatar Jun 15 '22 00:06 github-actions[bot]