Add error-on-unformatted command line option

This commit is contained in:
Seiichi Uchida 2017-12-11 09:54:44 +09:00
parent aea19d5e33
commit d17168f4ba

View File

@ -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",