Merge pull request #2685 from ipfs/feature/show-synopsis-in-long

Show Synopsis in long help
This commit is contained in:
Jeromy Johnson 2016-05-13 14:29:33 -07:00
commit 9017e7f86f

View File

@ -77,7 +77,11 @@ const usageFormat = "{{if .Usage}}{{.Usage}}{{else}}{{.Path}}{{if .ArgUsage}} {{
const longHelpFormat = `USAGE
{{.Indent}}{{template "usage" .}}
{{if .Arguments}}ARGUMENTS
{{if .Synopsis}}SYNOPSIS
{{.Synopsis}}
{{end}}{{if .Arguments}}ARGUMENTS
{{.Arguments}}