summary refs log tree commit diff stats
path: root/cmd/indus/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/indus/main.go')
-rw-r--r--cmd/indus/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/indus/main.go b/cmd/indus/main.go
index ce3aa91..a49778f 100644
--- a/cmd/indus/main.go
+++ b/cmd/indus/main.go
@@ -3,6 +3,7 @@ package main
 import (
 	"fmt"
 	"log"
+	"os"
 
 	"framagit.org/andinus/indus/clipboard"
 	"framagit.org/andinus/indus/fetch"
@@ -10,6 +11,11 @@ import (
 )
 
 func main() {
+	if len(os.Args) > 1 && os.Args[1] == "version" {
+		fmt.Println("Indus v0.1.0")
+		os.Exit(0)
+	}
+
 	// Get the primary clipboard selection.
 	sel, err := clipboard.GetSel()
 	if err != nil {