File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ pub fn main() {
213
213
214
214
if orig_args. iter ( ) . any ( |a| a == "--version" || a == "-V" ) {
215
215
let version_info = rustc_tools_util:: get_version_info!( ) ;
216
+
216
217
println ! ( "{version_info}" ) ;
217
218
exit ( 0 ) ;
218
219
}
@@ -273,15 +274,16 @@ pub fn main() {
273
274
#[ must_use]
274
275
fn help_message ( ) -> & ' static str {
275
276
color_print:: cstr!(
276
- "Checks a package to catch common mistakes and improve your Rust code. Run <cyan>clippy-driver</> with the same arguments you use for <cyan>rustc</>
277
+ "Checks a file to catch common mistakes and improve your Rust code.
278
+ Run <cyan>clippy-driver</> with the same arguments you use for <cyan>rustc</>
277
279
278
280
<green,bold>Usage</>:
279
281
<cyan,bold>clippy-driver</> <cyan>[OPTIONS] INPUT</>
280
282
281
283
<green,bold>Common options:</>
282
284
<cyan,bold>-h</>, <cyan,bold>--help</> Print this message
283
285
<cyan,bold>-V</>, <cyan,bold>--version</> Print version info and exit
284
- <cyan,bold>--rustc</> Pass all arguments to <cyan>rustc</>
286
+ <cyan,bold>--rustc</> Pass all arguments to <cyan>rustc</>
285
287
286
288
<green,bold>Allowing / Denying lints</>
287
289
You can use tool lints to allow or deny lints from your code, e.g.:
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ pub fn help_message() -> &'static str {
157
157
<cyan,bold>--fix</> Automatically apply lint suggestions. This flag implies <cyan>--no-deps</> and <cyan>--all-targets</>
158
158
<cyan,bold>-h</>, <cyan,bold>--help</> Print this message
159
159
<cyan,bold>-V</>, <cyan,bold>--version</> Print version info and exit
160
- <cyan,bold>--explain [LINT]</> Print the documentation for a given lint
160
+ <cyan,bold>--explain [LINT]</> Print the documentation for a given lint
161
161
162
162
See all options with <cyan,bold>cargo check --help</>.
163
163
You can’t perform that action at this time.
0 commit comments