Repository navigation
Can't figure out Help() for arg
#524
|
I'm basically trying to document a complex arg with
|
Answered by
alecthomas
Apr 18, 2025
Replies: 1 comment 3 replies
|
What is happening here is that you're accidentally triggering Kong's branching positional arguments. You're accidentally triggering this because of a misunderstanding of how Kong arguments work. Kong cannot parse a positional argument into a struct unless you implement a custom decoder on the enclosing struct, in this case on Finally, Here's a full example showing this behaviour. It would be good if flags/args could use |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that Help() is actually used if it's present, but none of the help formatters will use the additional help on flags or args, only on commands, currently.