Skip to content

Commit 751e2f7

Browse files
committed
Help message rephrasing
1 parent c212542 commit 751e2f7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/driver.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ pub fn main() {
213213

214214
if orig_args.iter().any(|a| a == "--version" || a == "-V") {
215215
let version_info = rustc_tools_util::get_version_info!();
216+
216217
println!("{version_info}");
217218
exit(0);
218219
}
@@ -273,15 +274,16 @@ pub fn main() {
273274
#[must_use]
274275
fn help_message() -> &'static str {
275276
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</>
277279
278280
<green,bold>Usage</>:
279281
<cyan,bold>clippy-driver</> <cyan>[OPTIONS] INPUT</>
280282
281283
<green,bold>Common options:</>
282284
<cyan,bold>-h</>, <cyan,bold>--help</> Print this message
283285
<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</>
285287
286288
<green,bold>Allowing / Denying lints</>
287289
You can use tool lints to allow or deny lints from your code, e.g.:

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub fn help_message() -> &'static str {
157157
<cyan,bold>--fix</> Automatically apply lint suggestions. This flag implies <cyan>--no-deps</> and <cyan>--all-targets</>
158158
<cyan,bold>-h</>, <cyan,bold>--help</> Print this message
159159
<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
161161
162162
See all options with <cyan,bold>cargo check --help</>.
163163

0 commit comments

Comments
 (0)