mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: formatting cmdline help message (#6174)
This commit is contained in:
@@ -55,7 +55,7 @@ void getopts_usage_line(tr_option const* const opt, size_t long_width, size_t sh
|
||||
auto const arg = getArgName(opt);
|
||||
|
||||
fmt::print(
|
||||
FMT_STRING(" {:s}{:<{}s} {:s}{:<{}s} {:<{}s}"),
|
||||
FMT_STRING(" {:s}{:<{}s} {:s}{:<{}s} {:<{}s} "),
|
||||
std::empty(short_name) ? " "sv : "-"sv,
|
||||
short_name,
|
||||
short_width,
|
||||
@@ -65,7 +65,7 @@ void getopts_usage_line(tr_option const* const opt, size_t long_width, size_t sh
|
||||
arg,
|
||||
arg_width);
|
||||
|
||||
auto const d_indent = short_width + long_width + arg_width + 6U;
|
||||
auto const d_indent = short_width + long_width + arg_width + 7U;
|
||||
auto const d_width = 80U - d_indent;
|
||||
|
||||
auto description = std::string_view{ opt->description };
|
||||
|
||||
Reference in New Issue
Block a user