From 08d9acd98117fb6bbeee8932c0c32a4ce48da946 Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Sun, 8 Sep 2024 11:38:03 +0200 Subject: [PATCH] beautify printing first arg --- common/common.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index c5c4d7508f033..9228eafcafae2 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -600,7 +600,9 @@ std::string llama_arg::to_string() { if (args.size() == 1) { ss << arg; } else { - ss << format("%-7s", arg) << ", "; + // first arg is usually abbreviation, we need padding to make it more beautiful + auto tmp = std::string(arg) + ", "; + ss << format("%-7s", tmp.c_str()); } } else { ss << arg << (arg != args.back() ? ", " : "");