Skip to content
Myr

Allow other options to follow --color without spec

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 9b9ad39 · 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
244 unmodified lines
245 return args[*i]246}247248func optionalNextString(args []string, i *int) string {249 if len(args) > *i+1 {249 if len(args) > *i+1 && !strings.HasPrefix(args[*i+1], "-") {250 *i++251 return args[*i]252 }253 return ""
868 unmodified lines