From 421f2e2a9dd0e74a286b384fb805177428616bb0 Mon Sep 17 00:00:00 2001 From: hahwul Date: Mon, 22 Feb 2021 00:55:30 +0900 Subject: [PATCH] (Fixed #28) arguments bug fix --- go.mod | 5 ++++- go.sum | 3 +++ main.go | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 go.sum diff --git a/go.mod b/go.mod index c8f127d..a97eacc 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,7 @@ module github.com/hahwul/gee go 1.15 -require github.com/logrusorgru/aurora/v3 v3.0.0 +require ( + github.com/logrusorgru/aurora v2.0.3+incompatible + github.com/logrusorgru/aurora/v3 v3.0.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..34c226b --- /dev/null +++ b/go.sum @@ -0,0 +1,3 @@ +github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= +github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= +github.com/logrusorgru/aurora/v3 v3.0.0/go.mod h1:vsR12bk5grlLvLXAYrBsb5Oc/N+LxAlxggSjiwMnCUc= diff --git a/main.go b/main.go index af46bd0..c8fd7e4 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { var files []string args := flag.Args() for _, v := range args { - if !strings.Contains(v, "-") { + if !strings.HasPrefix(v, "-") { files = append(files, v) } }