diff --git a/src/cli.vala b/src/cli.vala
index d649a8b61f875a1e4d2e1ec6ee68d43a275c47c6..912e67b3b9b635af9831582f13d66b718ebd7746 100644
--- a/src/cli.vala
+++ b/src/cli.vala
@@ -1850,6 +1850,12 @@ namespace Pamac {
 
 		void ask_group_confirmation (string grpname) {
 			var pkgs = database.get_group_pkgs (grpname);
+			if (transaction.no_confirm) {
+				foreach (unowned Package pkg in pkgs) {
+					to_install += pkg.name;
+				}
+				return;
+			}
 			// print pkgs
 			int name_length = 0;
 			int version_length = 0;