We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4407d commit 0d480dfCopy full SHA for 0d480df
src/bin/cargo/cli.rs
@@ -70,10 +70,9 @@ pub fn main(config: &mut LazyConfig) -> CliResult {
70
.iter()
71
.map(|(option_name, option_help_message)| {
72
let option_name_kebab_case = option_name.replace("_", "-");
73
- let padding = " ".repeat(longest_option - option_name.len()); // safe to subtract
74
format!(
75
- " -Z {}{} -- {}",
76
- option_name_kebab_case, padding, option_help_message
+ " -Z {:<longest_option$} -- {}",
+ option_name_kebab_case, option_help_message
77
)
78
})
79
.collect();
0 commit comments