Skip to content

Commit 3f1ed9d

Browse files
committed
fix: remove whitespace when no extra message is added to help
1 parent 5a799da commit 3f1ed9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ bool convert(std::string indata, std::string outpath) {
3131

3232
void print_help(std::string extra_message = "",
3333
std::string filename = "wwtools") {
34-
std::cout << rang::fg::red << extra_message << rang::fg::reset << std::endl
35-
<< std::endl;
34+
if (!extra_message.empty()) {
35+
std::cout << rang::fg::red << extra_message << rang::fg::reset << std::endl
36+
<< std::endl;
37+
}
3638
std::cout
3739
<< "Please use the command in one of the following ways:\n"
3840
<< " " << filename << " wem [input.wem] (--info)\n"

0 commit comments

Comments
 (0)