-
-
Notifications
You must be signed in to change notification settings - Fork 135
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help() Interface on flags seemingly unused? #426
Comments
That example is invalid, the HelpProvider interface explicitly only supports args/commands. I think the main reason it wasn't supported on flags is that it requires extra type definitions for flags of basic types, but other than that I don't think there's any reason why it shouldn't. |
Thanks! Just to be clear, this is example help code in your repo 馃槉 It would be good to support this as otherwise it's hard to have flags with long Help strings :( |
A workaround is to put the longer help into variables with |
Ooh! From here? That solves my problem, thanks! If I get time I might submit a PR amending the Help example as that is what led me astray :) |
I encountered the same issue and the examples led me here, too :) I will solve it with |
In the shell example code you provide an example of defining a
Help()
function on a flag:But this doesn't appear to be displayed at any point when running the code:
My use case is I have enough text for the help that I'd like to supply it through a
Help()
function instead of in the struct tag, but the function never seems to be used :(The text was updated successfully, but these errors were encountered: