This commit is contained in:
Jguer 2017-09-12 11:38:42 +09:00
parent 9afd66109a
commit 35b975a03c

3
cmd.go
View file

@ -148,6 +148,9 @@ func parser() (op string, options []string, packages []string, changedConfig boo
case "--help": case "--help":
usage() usage()
os.Exit(0) os.Exit(0)
case "--version":
fmt.Printf("yay v%s\n", version)
os.Exit(0)
case "--noconfirm": case "--noconfirm":
config.NoConfirm = true config.NoConfirm = true
fallthrough fallthrough