mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-02-13 22:44:57 -05:00
**What type of PR is this?** Other **What does this PR do? Why is it needed?** Allow a flag to be hidden and hide the `--disable-get-blobs-v2` flag. This flag is still usable, but does not show up any more in the help. This flag is used for internal purpose only, so no need to expose it publicly. **Why do we need to modify the `cli.HelpPrinter` function whereas other flags like `--aggregate-first-interval` are hidden just by using the `Hidden: true` property?** The `Hidden: true` property on the flag definition doesn't work by itself because `usage.go` uses a custom help template that bypasses the standard urfave/cli help rendering. **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description with sufficient context for reviewers to understand this PR. - [x] I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable). --------- Co-authored-by: Bastin <bastin.m@proton.me>