From d6492960b0129be9c5241fe7d3e6fc717e5856a6 Mon Sep 17 00:00:00 2001 From: Jonathan DeMasi Date: Wed, 5 Jun 2019 13:27:34 -0600 Subject: was not accounting for > 2 args --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 81a032e..14a478a 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ func parseArgs() string { } // We have one arg possible comma separated - if len(os.Args) == 2 { + if len(os.Args) >= 2 { return (os.Args[1]) } else { log.Fatalln("You have provided too many arguments") -- cgit v1.2.3