From 9030aa13481d295245d54663e071e2ba76ab433d Mon Sep 17 00:00:00 2001 From: "Emmanouil \"Manolis\" Maragkakis" Date: Wed, 8 Feb 2017 11:41:07 -0500 Subject: [PATCH] print description in help message, not in usage --- usage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usage.go b/usage.go index c31a428..ad028e0 100644 --- a/usage.go +++ b/usage.go @@ -29,9 +29,6 @@ func (p *Parser) WriteUsage(w io.Writer) { } } - if p.description != "" { - fmt.Fprintln(w, p.description) - } if p.version != "" { fmt.Fprintln(w, p.version) } @@ -76,6 +73,9 @@ func (p *Parser) WriteHelp(w io.Writer) { } } + if p.description != "" { + fmt.Fprintln(w, p.description) + } p.WriteUsage(w) // write the list of positionals