From 226fd41125f6611c19b084105b8ec2398975a5b5 Mon Sep 17 00:00:00 2001 From: Shiming Date: Thu, 19 Nov 2020 17:13:12 +0800 Subject: [PATCH 1/2] doc: clarify abigen alias flag usage update the `abigen --alias` flag help info, give an example to make it more clear related issue: https://github.com/ethereum/go-ethereum/issues/21846 --- cmd/abigen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index a74b0396d40f..1f7f6f6982a6 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -96,7 +96,7 @@ var ( } aliasFlag = cli.StringFlag{ Name: "alias", - Usage: "Comma separated aliases for function and event renaming, e.g. foo=bar", + Usage: "Comma separated aliases for function and event renaming, e.g. foo=_foo, bar=_bar", } ) From 6211c9f69eb2064a07245c84a8f1780c3b2f6b6b Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Sat, 12 Dec 2020 17:34:50 +0100 Subject: [PATCH 2/2] Update cmd/abigen/main.go Co-authored-by: ligi --- cmd/abigen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index 1f7f6f6982a6..7b3b35e4e54f 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -96,7 +96,7 @@ var ( } aliasFlag = cli.StringFlag{ Name: "alias", - Usage: "Comma separated aliases for function and event renaming, e.g. foo=_foo, bar=_bar", + Usage: "Comma separated aliases for function and event renaming, e.g. original1=alias1, original2=alias2", } )