mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Improve Clippy dev help
+ Print help if no subcommand is supplied + Make a short version of `update_lints` help for the subcommand listing
This commit is contained in:
parent
77ba5045d7
commit
acd6d4d094
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@ extern crate clap;
|
|||
extern crate clippy_dev;
|
||||
extern crate regex;
|
||||
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use clap::{App, AppSettings, Arg, SubCommand};
|
||||
use clippy_dev::*;
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -13,9 +13,11 @@ enum UpdateMode {
|
|||
|
||||
fn main() {
|
||||
let matches = App::new("Clippy developer tooling")
|
||||
.setting(AppSettings::SubcommandRequiredElseHelp)
|
||||
.subcommand(
|
||||
SubCommand::with_name("update_lints")
|
||||
.about(
|
||||
.about("Updates lint registration and information from the source code")
|
||||
.long_about(
|
||||
"Makes sure that:\n \
|
||||
* the lint count in README.md is correct\n \
|
||||
* the changelog contains markdown link references at the bottom\n \
|
||||
|
|
Loading…
Reference in a new issue