good morning!!!!

Skip to content
Snippets Groups Projects
Commit 43671067 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

Merge pull request #14320 from karalabe/rlpdump-single-flag

cmd/rlpdump: support dumping only the first entity
parents 30d706c3 436acb4f
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment