aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-12 19:27:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-04-12 19:27:34 +0800
commit436acb4f752b6d16a9ae76447eed02827601d61f (patch)
treefb4369a25fb1392d8663258afbcae4a1416dc14f /cmd
parent050ceff1aed3d06b4ebf4aead0dc03e7cac34458 (diff)
downloadgo-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar.gz
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar.bz2
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar.lz
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar.xz
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.tar.zst
go-tangerine-436acb4f752b6d16a9ae76447eed02827601d61f.zip
cmd/rlpdump: support dumping only the first entity
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rlpdump/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go
index 10eea1fde..7d328e59b 100644
--- a/cmd/rlpdump/main.go
+++ b/cmd/rlpdump/main.go
@@ -32,6 +32,7 @@ import (
var (
hexMode = flag.String("hex", "", "dump given hex data")
noASCII = flag.Bool("noascii", false, "don't print ASCII strings readably")
+ single = flag.Bool("single", false, "print only the first element, discard the rest")
)
func init() {
@@ -82,6 +83,9 @@ func main() {
break
}
fmt.Println()
+ if *single {
+ break
+ }
}
}