From e9a450f029598a004c1be35bc7e425a818ed2337 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 23 Jul 2016 13:05:41 -0700 Subject: [PATCH] Make clap's generated help messages not distinguish "flags" and "options" Clap normally distinguishes between "flags" (which don't take a value) and "options" (which take a value), displaying them separately in help. Enable the UnifiedHelpMessage setting, to unify these two in generated help messages. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 00ec7b4f08e796400f7d1533f38a95d29025d7f3..09e0f953829f73cb27234d8dc42fb8eeaa962f8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1526,6 +1526,7 @@ fn main() { .author("Josh Triplett ") .version(crate_version!()) .global_setting(AppSettings::ColoredHelp) + .global_setting(AppSettings::UnifiedHelpMessage) .global_setting(AppSettings::VersionlessSubcommands) .subcommands(vec![ SubCommand::with_name("add")