urfave / cli

A simple, fast, and fun package for building command line apps in Go
https://cli.urfave.org
MIT License
21.9k stars 1.69k forks source link

Backport Show non categorized flags with categorized on help #1854

Closed jetexe closed 6 months ago

jetexe commented 6 months ago

What type of PR is this?

What this PR does / why we need it:

Reverting the removal of visible flags from help if their sibling flags have categories defined.

Example:

App:
    Flags:
        Flag1: // non categorized
        Flag2: Category1

Help Before PR:
    Options:
      Category1
        Flag2

Help After:
    Options:
        Flag1

      Category1
        Flag2

Which issue(s) this PR fixes:

fixes #1672 for version 3

Special notes for your reviewer:

This is a backport (or forwardport in our case) of #1673

Testing

Release Notes

Reverted removal of non categorized flags alongside categorized flags