about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-08 07:36:32 +0000
committerbors <bors@rust-lang.org>2019-03-08 07:36:32 +0000
commit9702b3d2c0905b6975a0e6a9ce25c55f95eba65e (patch)
treee0732ae70d0c7c3c8e34c4fc64cc40ab1b43037f
parent90d43500557d4745f5ea76f9e0e7cff9c6ef9b51 (diff)
parentacd6d4d09433c558ffbb9524a5aeb3b4f6465352 (diff)
downloadrust-9702b3d2c0905b6975a0e6a9ce25c55f95eba65e.tar.gz
rust-9702b3d2c0905b6975a0e6a9ce25c55f95eba65e.zip
Auto merge of #3856 - mikerite:clippy-dev-enchancement-1, r=phansch
Improve Clippy dev help

+ Print help if no subcommand is supplied
+ Make a short version of `update_lints` help for the subcommand listing
-rw-r--r--clippy_dev/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs
index 1d9245d1347..3f21b9dee11 100644
--- a/clippy_dev/src/main.rs
+++ b/clippy_dev/src/main.rs
@@ -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 \