Skip to content

Commit 9702b3d

Browse files
committed
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
2 parents 90d4350 + acd6d4d commit 9702b3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clippy_dev/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate clap;
22
extern crate clippy_dev;
33
extern crate regex;
44

5-
use clap::{App, Arg, SubCommand};
5+
use clap::{App, AppSettings, Arg, SubCommand};
66
use clippy_dev::*;
77

88
#[derive(PartialEq)]
@@ -13,9 +13,11 @@ enum UpdateMode {
1313

1414
fn main() {
1515
let matches = App::new("Clippy developer tooling")
16+
.setting(AppSettings::SubcommandRequiredElseHelp)
1617
.subcommand(
1718
SubCommand::with_name("update_lints")
18-
.about(
19+
.about("Updates lint registration and information from the source code")
20+
.long_about(
1921
"Makes sure that:\n \
2022
* the lint count in README.md is correct\n \
2123
* the changelog contains markdown link references at the bottom\n \

0 commit comments

Comments
 (0)