Fixed yogurt mode

This commit is contained in:
Jguer 2016-11-15 00:00:44 +00:00
parent 96149fd5b4
commit b4dd921f3b

3
yay.go
View File

@ -68,7 +68,7 @@ func main() {
var err error
conf, err := readConfig(PacmanConf)
op, pkgs, options, err := parser()
op, options, pkgs, err := parser()
if err != nil {
fmt.Println(err)
os.Exit(1)
@ -88,6 +88,7 @@ func main() {
case "yogurt":
for _, pkg := range pkgs {
err = searchAndInstall(pkg, &conf, options)
break
}
case "--help", "-h":
usage()