@@ -76,7 +76,8 @@ fn main() {
7676 } ,
7777 ( "lint" , Some ( matches) ) => {
7878 let path = matches. value_of ( "path" ) . unwrap ( ) ;
79- lint:: run ( path) ;
79+ let args = matches. values_of ( "args" ) . into_iter ( ) . flatten ( ) ;
80+ lint:: run ( path, args) ;
8081 } ,
8182 ( "rename_lint" , Some ( matches) ) => {
8283 let old_name = matches. value_of ( "old_name" ) . unwrap ( ) ;
@@ -123,7 +124,7 @@ fn get_clap_config<'a>() -> ArgMatches<'a> {
123124 * the lint count in README.md is correct\n \
124125 * the changelog contains markdown link references at the bottom\n \
125126 * all lint groups include the correct lints\n \
126- * lint modules in `clippy_lints/*` are visible in `src/lifb .rs` via `pub mod`\n \
127+ * lint modules in `clippy_lints/*` are visible in `src/lib .rs` via `pub mod`\n \
127128 * all lints are registered in the lint store",
128129 )
129130 . arg ( Arg :: with_name ( "print-only" ) . long ( "print-only" ) . help (
@@ -278,11 +279,23 @@ fn get_clap_config<'a>() -> ArgMatches<'a> {
278279 Lint a package directory:
279280 cargo dev lint tests/ui-cargo/wildcard_dependencies/fail
280281 cargo dev lint ~/my-project
282+
283+ Run rustfix:
284+ cargo dev lint ~/my-project -- --fix
285+
286+ Set lint levels:
287+ cargo dev lint file.rs -- -W clippy::pedantic
288+ cargo dev lint ~/my-project -- -- -W clippy::pedantic
281289 " } )
282290 . arg (
283291 Arg :: with_name ( "path" )
284292 . required ( true )
285293 . help ( "The path to a file or package directory to lint" ) ,
294+ )
295+ . arg (
296+ Arg :: with_name ( "args" )
297+ . multiple ( true )
298+ . help ( "Pass extra arguments to cargo/clippy-driver" ) ,
286299 ) ,
287300 )
288301 . subcommand (
0 commit comments