Skip to content
Snippets Groups Projects
Unverified Commit cfdb00b9 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Allow other options to follow --color without spec

parent 9b9ad391
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ func nextString(args []string, i *int, message string) string {
}
func optionalNextString(args []string, i *int) string {
if len(args) > *i+1 {
if len(args) > *i+1 && !strings.HasPrefix(args[*i+1], "-") {
*i++
return args[*i]
}
......
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