Skip to content

Commit

Permalink
Merge pull request #35 from davecramer/patch-2
Browse files Browse the repository at this point in the history
Make sure there is at least 1 argument besides the path
  • Loading branch information
jmccormick2001 authored Mar 29, 2018
2 parents 7499232 + c0e8a18 commit d8f8f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func main() {
}
}()

if len(os.Args) < 1 {
if len(os.Args) < 2 {
errorExit()
}

Expand Down

0 comments on commit d8f8f72

Please sign in to comment.