We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--style-edition
1 parent fb546ee commit b77eb96Copy full SHA for b77eb96
src/tools/rustfmt/src/bin/main.rs
@@ -161,6 +161,12 @@ fn make_opts() -> Options {
161
"Set options from command line. These settings take priority over .rustfmt.toml",
162
"[key1=val1,key2=val2...]",
163
);
164
+ opts.optopt(
165
+ "",
166
+ "style-edition",
167
+ "The edition of the Style Guide.",
168
+ "[2015|2018|2021|2024]",
169
+ );
170
171
if is_nightly {
172
opts.optflag(
@@ -186,12 +192,6 @@ fn make_opts() -> Options {
186
192
"skip-children",
187
193
"Don't reformat child modules (unstable).",
188
194
189
- opts.optopt(
190
- "",
191
- "style-edition",
- "The edition of the Style Guide (unstable).",
- "[2015|2018|2021|2024]",
- );
195
}
196
197
opts.optflag("v", "verbose", "Print verbose output");
0 commit comments