Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extending of funcmap for templates #132

Closed
josephspurrier opened this issue Jul 3, 2016 · 2 comments
Closed

Allow extending of funcmap for templates #132

josephspurrier opened this issue Jul 3, 2016 · 2 comments

Comments

@josephspurrier
Copy link

Brilliant package! You just saved me boatloads of time because my command-line app needed to be really flexible and your package does the majority of the work so I can focus on functionality.

I'd like to modify the way .Context.Args displays in the UsageTemplate. I would like the variable type (string/bool) and the default to display next to the help string.

Is this functionality built in somewhere or would it make sense to add the ability to extend the funcmap in UsageForContextWithTemplate?

@alecthomas
Copy link
Owner

Absolutely agreed, this is slated for v3 and tracked in #90.

@josephspurrier
Copy link
Author

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants