Skip to content

Commit

Permalink
beautify printing first arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Sep 8, 2024
1 parent 01da813 commit 08d9acd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ? ", " : "");
Expand Down

0 comments on commit 08d9acd

Please sign in to comment.