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":
usage()
os.Exit(0)
case "--version":
fmt.Printf("yay v%s\n", version)
os.Exit(0)
case "--noconfirm":
config.NoConfirm = true
fallthrough