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

Separate Template for "Incorrect Usage" #104

Closed
dufferzafar opened this issue Jul 4, 2014 · 3 comments
Closed

Separate Template for "Incorrect Usage" #104

dufferzafar opened this issue Jul 4, 2014 · 3 comments

Comments

@dufferzafar
Copy link

Currently, when a user passes an unidentified argument, like app --badargument, the ShowAppHelp function is called, which uses the AppHelpTemplate.

This behavior is fine, but, I think showing the entire help might not always be nice idea. Like git only shows the common usage when a bad argument is passed.

So, it'll be better if there were a separate IncorrectUsageTemplate which will offer greater flexibility.

@codegangsta
Copy link
Contributor

Yeah that may be a good idea. Anybody else down for this?

@kdar
Copy link

kdar commented Nov 15, 2014

I think this is good. +1

@meatballhat
Copy link
Member

I believe this is now covered by App.OnUsageError. Please yell if you disagree!

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

4 participants