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

Correctly display help whe nthe users types an unknown command #367

Merged
merged 1 commit into from Jul 4, 2018

Conversation

Soulou
Copy link
Member

@Soulou Soulou commented Jul 4, 2018

Fixes #365

@Soulou Soulou requested a review from EtienneM July 4, 2018 14:21
@@ -89,7 +89,8 @@ COMMANDS:{{range .VisibleCategories}}{{if .Name}}
{{end}}{{end}}{{if .VisibleFlags}}
GLOBAL OPTIONS:
{{range $index, $option := .VisibleFlags}}{{if $index}}
{{end}}{{$option}}{{end}}{{end}}{{if .Copyright}}
{{end}}{{$option}}{{end}}{{end}}
{{if .Copyright}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it valid to put the if statement on a new line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we're in a template and I wanted to add a newline because the output was not great (really compacted)

@EtienneM EtienneM merged commit 5d1a9e9 into master Jul 4, 2018
@EtienneM EtienneM deleted the fix/365/err-msg branch July 4, 2018 15:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants