Skip to content

Commit 9a31f9a

Browse files
committed
refactor(cmd/debug): Rename decode_key flag to parse_key.
1 parent 2573c1a commit 9a31f9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dgraph/cmd/debug/run.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type flagOptions struct {
6969
sizeHistogram bool
7070
noKeys bool
7171
key x.SensitiveByteSlice
72-
decodeKey string
72+
parseKey string
7373

7474
// Options related to the WAL.
7575
wdir string
@@ -110,7 +110,7 @@ func init() {
110110
flag.StringVarP(&opt.wsetSnapshot, "snap", "s", "",
111111
"Set snapshot term,index,readts to this. Value must be comma-separated list containing"+
112112
" the value for these vars in that order.")
113-
flag.StringVar(&opt.decodeKey, "decode_key", "", "Decode hex key.")
113+
flag.StringVar(&opt.parseKey, "parse_key", "", "Parse hex key.")
114114
enc.RegisterFlags(flag)
115115
}
116116

@@ -888,8 +888,8 @@ func run() {
888888
}
889889
}()
890890

891-
if opt.decodeKey != "" {
892-
k, err := hex.DecodeString(opt.decodeKey)
891+
if opt.parseKey != "" {
892+
k, err := hex.DecodeString(opt.parseKey)
893893
if err != nil {
894894
log.Fatalf("Error while decoding hex key: %v\n", err)
895895
}

0 commit comments

Comments
 (0)