[mlpack-git] master: Don't print extra lines. (2e740c5)

gitdub at mlpack.org gitdub at mlpack.org
Wed Jul 13 11:03:59 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/59bc0b32630a3ad786706993f4d5e8b087f1c702...0d9a0e263a32b99d8dcf5d2723b3b92c67e669fc

>---------------------------------------------------------------

commit 2e740c5641856dc9d2e82615236fe6fd9c28e24a
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Jul 13 11:03:59 2016 -0400

    Don't print extra lines.


>---------------------------------------------------------------

2e740c5641856dc9d2e82615236fe6fd9c28e24a
 src/mlpack/core/util/cli.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/core/util/cli.cpp b/src/mlpack/core/util/cli.cpp
index 708f851..323f2c5 100644
--- a/src/mlpack/core/util/cli.cpp
+++ b/src/mlpack/core/util/cli.cpp
@@ -666,7 +666,8 @@ void CLI::PrintHelp(const std::string& param)
       std::cout << HyphenateString(desc, 32) << std::endl;
     }
 
-    std::cout << std::endl;
+    if (printedHeader)
+      std::cout << std::endl;
   }
 
   // Helpful information at the bottom of the help output, to point the user to




More information about the mlpack-git mailing list