From d2b3b1faa0bdc1c5d2350cc4635aba81e02e9d96 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Tue, 12 May 2015 18:12:14 -0400 Subject: [PATCH] fix(suggestions): --help and --version now get suggestions Closes #116 --- src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.rs b/src/app.rs index 1a308536..165aa170 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1648,6 +1648,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{ if self.needs_short_help { arg.short = Some('h'); } + self.long_list.insert("help"); self.flags.insert("hclap_help", arg); } if self.needs_long_version { @@ -1664,6 +1665,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{ if self.needs_short_version { arg.short = Some('v'); } + self.long_list.insert("version"); self.flags.insert("vclap_version", arg); } if self.needs_subcmd_help && !self.subcommands.is_empty() {