Skip to content

Commit a48a457

Browse files
author
Ed Page
committed
fix: Improve the organization of --help
1 parent 975dab8 commit a48a457

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.rs

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ impl Default for Format {
3838

3939
#[derive(Debug, StructOpt)]
4040
#[structopt(rename_all = "kebab-case")]
41+
#[structopt(
42+
setting = structopt::clap::AppSettings::UnifiedHelpMessage,
43+
setting = structopt::clap::AppSettings::DeriveDisplayOrder,
44+
setting = structopt::clap::AppSettings::DontCollapseArgsInUsage
45+
)]
4146
struct Args {
4247
#[structopt(parse(from_os_str), default_value = ".")]
4348
/// Paths to check

0 commit comments

Comments
 (0)