aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jon.demasi@colorado.edu>2019-06-05 13:27:34 -0600
committerJonathan DeMasi <jon.demasi@colorado.edu>2019-06-05 13:27:34 -0600
commitd6492960b0129be9c5241fe7d3e6fc717e5856a6 (patch)
tree80787c081cf3fb4ee547370020329beacdee15e7
parent77350240b9132dea4ad27cd452b7e15f721f4669 (diff)
downloadgh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar.gz
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar.bz2
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar.lz
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar.xz
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.tar.zst
gh_authkey_checker-d6492960b0129be9c5241fe7d3e6fc717e5856a6.zip
was not accounting for > 2 args
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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")