mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 05:33:59 +00:00
Use named arguments for formatting usage message.
It was getting a bit awkward.
This commit is contained in:
parent
c1b08dd260
commit
859657f2c5
@ -777,13 +777,13 @@ fn usage(verbose: bool, include_unstable_options: bool) {
|
||||
} else {
|
||||
"\n --help -v Print the full set of options rustc accepts"
|
||||
};
|
||||
println!("{}\nAdditional help:
|
||||
println!("{options}\nAdditional help:
|
||||
-C help Print codegen options
|
||||
-W help \
|
||||
Print 'lint' options and default settings{}{}\n",
|
||||
options.usage(message),
|
||||
nightly_help,
|
||||
verbose_help);
|
||||
Print 'lint' options and default settings{nightly}{verbose}\n",
|
||||
options = options.usage(message),
|
||||
nightly = nightly_help,
|
||||
verbose = verbose_help);
|
||||
}
|
||||
|
||||
fn print_wall_help() {
|
||||
|
Loading…
Reference in New Issue
Block a user