diff options
author | Andinus <andinus@nand.sh> | 2020-03-22 14:05:00 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-22 14:12:24 +0530 |
commit | 36bd8f2361e071e9f1d612b5e88b8ac713b8418c (patch) | |
tree | 51938ebf2c303bfb817bf4bcb9ba465f56cf4f86 /cmd | |
parent | 9fde6e5a892b228c2d64af05b02380847573c832 (diff) | |
download | indus-36bd8f2361e071e9f1d612b5e88b8ac713b8418c.tar.gz |
Add version command & use extract instead of description
Description is nice but most of the words that I lookup have better explanation in extract.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/indus/main.go | 6 |
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 { |