shithub: gover

Download patch

ref: a4f523a74b71aa90dc91c91c733e197021edb137
parent: a7561cf5afe0bf683c0b6b384e5a4710b754ce97
author: Aaron Bieber <[email protected]>
date: Thu Dec 17 08:40:20 EST 2020

puke with no args

--- a/main.go
+++ b/main.go
@@ -325,6 +325,11 @@
 	_ = protect.Unveil(root, "rwxc")
 	_ = protect.UnveilBlock()
 
+	if len(os.Args) == 1 {
+		log.Fatalf("gover: usage: gover [download|version]")
+		os.Exit(1)
+	}
+
 	if os.Args[1] == "download" {
 		switch len(os.Args) {
 		case 3: