From 96bae6ba5f5d42ff468bc3bf1d83da10b572d6c6 Mon Sep 17 00:00:00 2001 From: Sergey Kamardin Date: Sun, 6 Sep 2020 18:32:04 +0300 Subject: [PATCH] parse/args: improve error message hint --- parse/args/args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/args/args.go b/parse/args/args.go index 413d784..8235487 100644 --- a/parse/args/args.go +++ b/parse/args/args.go @@ -88,7 +88,7 @@ func (p *Parser) next() bool { p.fail(""+ "ambiguous boolean flag -%[1]s value: can't guess whether "+ "the %[2]q is the flag value or the non-flag argument "+ - "(consider using `%[1]s=%[2]s` or `%[1]s -- %[2]s`)", + "(consider using `-%[1]s=%[2]s` or `-%[1]s -- %[2]s`)", name, value, ) return false