[llvm] [llvm-driver] Add a newline at the end of the help message (PR #99425)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 20:46:39 PDT 2024


https://github.com/ArcaneNibble created https://github.com/llvm/llvm-project/pull/99425

This was constantly messing with my terminal prompt 😹 

>From 6e3ad019815628091ef7fe0634ff7045ff623de8 Mon Sep 17 00:00:00 2001
From: R <rqou at berkeley.edu>
Date: Thu, 18 Jul 2024 04:45:31 +0100
Subject: [PATCH] [llvm-driver] Add a newline at the end of the help message

---
 llvm/tools/llvm-driver/llvm-driver.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/tools/llvm-driver/llvm-driver.cpp b/llvm/tools/llvm-driver/llvm-driver.cpp
index 53a8b9357e378..14ce162faee46 100644
--- a/llvm/tools/llvm-driver/llvm-driver.cpp
+++ b/llvm/tools/llvm-driver/llvm-driver.cpp
@@ -33,7 +33,7 @@ static void printHelpMessage() {
                << subcommands
                << "\n  Type \"llvm <subcommand> --help\" to get more help on a "
                   "specific subcommand\n\n"
-               << "OPTIONS:\n\n  --help - Display this message";
+               << "OPTIONS:\n\n  --help - Display this message\n";
 }
 
 static int findTool(int Argc, char **Argv, const char *Argv0) {



More information about the llvm-commits mailing list