mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +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);
|
auto const arg = getArgName(opt);
|
||||||
|
|
||||||
fmt::print(
|
fmt::print(
|
||||||
FMT_STRING(" {:s}{:<{}s} {:s}{:<{}s} {:<{}s}"),
|
FMT_STRING(" {:s}{:<{}s} {:s}{:<{}s} {:<{}s} "),
|
||||||
std::empty(short_name) ? " "sv : "-"sv,
|
std::empty(short_name) ? " "sv : "-"sv,
|
||||||
short_name,
|
short_name,
|
||||||
short_width,
|
short_width,
|
||||||
@@ -65,7 +65,7 @@ void getopts_usage_line(tr_option const* const opt, size_t long_width, size_t sh
|
|||||||
arg,
|
arg,
|
||||||
arg_width);
|
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 const d_width = 80U - d_indent;
|
||||||
|
|
||||||
auto description = std::string_view{ opt->description };
|
auto description = std::string_view{ opt->description };
|
||||||
|
|||||||
Reference in New Issue
Block a user