From 3c47d90a48a19b16121f8b44fb9f22e34d030e41 Mon Sep 17 00:00:00 2001
From: fhdk <fh@uex.dk>
Date: Sat, 23 Sep 2017 13:11:02 +0200
Subject: [PATCH] deprecation warning for -g and -y

---
 pacman_mirrors/pacman_mirrors.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/pacman_mirrors/pacman_mirrors.py b/pacman_mirrors/pacman_mirrors.py
index e6570cbf..0b973dee 100644
--- a/pacman_mirrors/pacman_mirrors.py
+++ b/pacman_mirrors/pacman_mirrors.py
@@ -200,11 +200,8 @@ class PacmanMirrors:
             self.quiet = True
 
         if args.sync:
-            print(".: {} {} {} {}".format(color.YELLOW,
-                                          "Argument '-y/--generate' is deprecated.",
-                                          color.ENDCOLOR,
-                                          "Use 'pacman -Syy'."
-                                          ))
+            print(".:{} Argument '-y/--sync' is deprecated.{}\n"
+                  ".: Please use 'pacman -Syy'".format(color.YELLOW, color.ENDCOLOR))
             self.sync = True
 
         if args.interactive:
-- 
GitLab