From 35b975a03c4a40428e00ca2162e50dee31d3910c Mon Sep 17 00:00:00 2001 From: Jguer Date: Tue, 12 Sep 2017 11:38:42 +0900 Subject: [PATCH] Fixes #45 --- cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd.go b/cmd.go index 8bf24b61..97a0ff9b 100644 --- a/cmd.go +++ b/cmd.go @@ -148,6 +148,9 @@ func parser() (op string, options []string, packages []string, changedConfig boo case "--help": usage() os.Exit(0) + case "--version": + fmt.Printf("yay v%s\n", version) + os.Exit(0) case "--noconfirm": config.NoConfirm = true fallthrough