From 9d55882ce2fa748e21a27f7aebc845730573a015 Mon Sep 17 00:00:00 2001 From: Jguer Date: Sun, 21 Jan 2018 03:39:53 +0900 Subject: [PATCH] Added statistics to new interface. Removed old. --- cmd.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd.go b/cmd.go index 5ff5c149..2a09a76d 100644 --- a/cmd.go +++ b/cmd.go @@ -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 {