Fix argument parser for -m

/cc @tessus
This commit is contained in:
Junegunn Choi 2019-11-02 20:44:21 +09:00
parent a185593d65
commit 68683c444f
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -1191,7 +1191,7 @@ func parseOptions(opts *Options, allArgs []string) {
opts.WithNth = splitNth(value)
} else if match, _ := optString(arg, "-s", "--sort="); match {
opts.Sort = 1 // Don't care
} else if match, value := optString(arg, "-s", "--multi="); match {
} else if match, value := optString(arg, "-m", "--multi="); match {
opts.Multi = atoi(value)
} else if match, value := optString(arg, "--height="); match {
opts.Height = parseHeight(value)