beautify printing first arg
This commit is contained in:
parent
01da813dc7
commit
08d9acd981
1 changed files with 3 additions and 1 deletions
|
@ -600,7 +600,9 @@ std::string llama_arg::to_string() {
|
||||||
if (args.size() == 1) {
|
if (args.size() == 1) {
|
||||||
ss << arg;
|
ss << arg;
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
ss << arg << (arg != args.back() ? ", " : "");
|
ss << arg << (arg != args.back() ? ", " : "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue