Skip to content

Commit

Permalink
parse/args: improve error message hint
Browse files Browse the repository at this point in the history
  • Loading branch information
gobwas committed Sep 6, 2020
1 parent b7ae649 commit 96bae6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse/args/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96bae6b

Please sign in to comment.