From cfdb00b9718822b6ab2018a47288d5be3a32d07c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 21 Oct 2016 19:20:00 +0900 Subject: [PATCH] Allow other options to follow --color without spec --- src/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.go b/src/options.go index f586e5e..a7f0188 100644 --- a/src/options.go +++ b/src/options.go @@ -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] }