Skip to content
Myr

Fix argument parser for -m

Before adoption: this commit came in with the history the project adopted, so no landing records it.

/cc @tessus

authored by Junegunn Choi · committed by Junegunn Choi · parent a185593 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/options.go+1 added-1 removed
1189 unmodified lines
1190 } else if match, value := optString(arg, "--with-nth="); match {1191 opts.WithNth = splitNth(value)1192 } else if match, _ := optString(arg, "-s", "--sort="); match {1193 opts.Sort = 1 // Don't care1194 } else if match, value := optString(arg, "-s", "--multi="); match {1194 } else if match, value := optString(arg, "-m", "--multi="); match {1195 opts.Multi = atoi(value)1196 } else if match, value := optString(arg, "--height="); match {1197 opts.Height = parseHeight(value)1198 } else if match, value := optString(arg, "--min-height="); match {
120 unmodified lines