You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import"os"import"github.com/jessevdk/go-flags"typeoptionsstruct {
Abool`short:"a" description:"output should be aligned"`Mbool`long:"a-very-long-option-name" description:"cue 'long long man' song" hidden:"yes"`Zbool`short:"z" description:"operator is asleep"`
}
funcmain() { flags.NewParser(&options{}, 0).WriteHelp(os.Stdout) }
you get
Usage:
bug2
Application Options:
‐a output should be aligned
‐z operator is asleep
The text was updated successfully, but these errors were encountered:
chipaca
added a commit
to chipaca/go-flags
that referenced
this issue
Sep 22, 2018
It changes the definition of `(*Option).canCli()` to also check
whether an option is hidden.
There's still some work to be done in this area as a group with no
non-hidden options will also not render right, but I'll get to that
later.
Given
you get
The text was updated successfully, but these errors were encountered: