mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 13:44:13 +00:00
Add error-on-unformatted command line option
This commit is contained in:
parent
aea19d5e33
commit
d17168f4ba
@ -163,6 +163,12 @@ fn make_opts() -> Options {
|
||||
"config-help",
|
||||
"show details of rustfmt configuration options",
|
||||
);
|
||||
opts.optflag(
|
||||
"",
|
||||
"error-on-unformatted",
|
||||
"Error if unable to get comments or string literals within max_width, \
|
||||
or they are left with trailing whitespaces",
|
||||
);
|
||||
opts.opt(
|
||||
"",
|
||||
"dump-default-config",
|
||||
|
Loading…
Reference in New Issue
Block a user