From 8ee1acc2be26d5efe0c0b2d698f47d830aa92a88 Mon Sep 17 00:00:00 2001
From: TheTank20 <leoholdiman7@gmail.com>
Date: Fri, 28 Jul 2023 16:50:40 -0500
Subject: [PATCH] Fix multiple key issue

---
 src/cli.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/cli.cpp b/src/cli.cpp
index 5b73ca9..e79a425 100644
--- a/src/cli.cpp
+++ b/src/cli.cpp
@@ -433,21 +433,20 @@ int CLI::BINK2002Generate() {
         }
 
         PIDGEN3::BINK2002::Generate(this->eCurve, this->genPoint, this->genOrder, this->privateKey, pChannelID, pAuthInfo, false, this->pKey);
-        fmt::print("\n");
 
         bool isValid = PIDGEN3::BINK2002::Verify(this->eCurve, this->genPoint, this->pubPoint, this->pKey);
         if (isValid) {
             CLI::printKey(this->pKey);
-            if (i < this->total - 1 || this->options.verbose) {
+            if (i < this->total - 1 || this->options.verbose) { // check if end of list or verbose
                 fmt::print("\n");
             }
-            this->count += isValid;
+            this->count += isValid; // add to count
         }
         else {
             if (this->options.verbose) {
-                CLI::printKey(this->pKey);
-                fmt::print(" [Invalid]");
-                if (i < this->total - 1) {
+                CLI::printKey(this->pKey); // print the key
+                fmt::print(" [Invalid]"); // and add " [Invalid]" to the key
+                if (i < this->total - 1) { // check if end of list
                     fmt::print("\n");
                 }
             }