summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/indus/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/indus/main.go b/cmd/indus/main.go
index 74a1b49..a49778f 100644
--- a/cmd/indus/main.go
+++ b/cmd/indus/main.go
@@ -11,7 +11,7 @@ import (
 )
 
 func main() {
-	if os.Args[1] == "version" {
+	if len(os.Args) > 1 && os.Args[1] == "version" {
 		fmt.Println("Indus v0.1.0")
 		os.Exit(0)
 	}