Added statistics to new interface. Removed old.

This commit is contained in:
Jguer 2018-01-21 03:39:53 +09:00
parent 8fd8cd65fa
commit 9d55882ce2
No known key found for this signature in database
GPG key ID: 09754DBECF21746F

5
cmd.go
View file

@ -369,7 +369,8 @@ func handlePrint() (err error) {
default:
complete("sh")
}
case cmdArgs.existsArg("d", "defaultconfig"):
case cmdArgs.existsArg("s", "stats"):
err = localStatistics()
default:
return nil
}
@ -390,8 +391,6 @@ func handleYay() (err error) {
if err != nil {
return
}
} else if cmdArgs.existsArg("stats") {
err = localStatistics()
} else if cmdArgs.existsArg("cleandeps") {
err = cleanDependencies()
} else if len(cmdArgs.targets) > 0 {