diff --git a/tldr/cargo-clippy b/tldr/cargo-clippy index c6fea88d..19f42b97 100644 --- a/tldr/cargo-clippy +++ b/tldr/cargo-clippy @@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git `cargo clippy --package {{package}}` +- Run checks for a lint group (see ): + +`cargo clippy -- --warn clippy::{{lint_group}}` + - Treat warnings as errors: `cargo clippy -- --deny warnings` diff --git a/tldr/tldr b/tldr/tldr index 186460a0..3de674ba 100644 --- a/tldr/tldr +++ b/tldr/tldr @@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git - [l]ist all pages for the current platform and `common`: `tldr --list` + +- [l]ist all available subcommand pages for a command: + +`tldr --list | grep {{command}} | column`