From e0900e1cfe0b2a7961ed690dfcce62364e1c88a4 Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 22 Mar 2020 14:05:00 +0530 Subject: Add version command & use extract instead of description Description is nice but most of the words that I lookup have better explanation in extract. --- cmd/indus/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') diff --git a/cmd/indus/main.go b/cmd/indus/main.go index ce3aa91..74a1b49 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 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 { -- cgit 1.4.1-2-gfad0