Skip to content

Commit

Permalink
(Fixed #28) arguments bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Feb 21, 2021
1 parent f8712c0 commit 421f2e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 421f2e2

Please sign in to comment.