akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
604 stars 62 forks source link

Customizable Help Functions #37

Closed densestvoid closed 4 years ago

densestvoid commented 4 years ago

Designed to begin addressing issue #29

HelpFunc added as field for Parsers and Commands Parser HelpFunc defaults to Usage unless overwritten Command HelpFunc defaults to first non nil parent HelpFunc unless overwritten

Design choice to enable backwards compatibility required exposing Command and arg fields with Getter functions and an interface.

Does not resolve: exiting program on help invocation overwrritting/disabling -h | --help argument strings enabling other argument strings to invoke help

densestvoid commented 4 years ago

Changes committed, all checks have passed