From 8715ac268c1d6ebcda81b616819889ee9fd2c45d Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 23 Jul 2018 16:27:25 -0400 Subject: [PATCH] chore: makes some effectively private APIs public for clap_generate to use --- src/build/app/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index db04b41e..bebafb0c 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -1406,7 +1406,9 @@ impl<'a, 'b> App<'a, 'b> { Ok(matcher.into()) } - pub(crate) fn _build(&mut self, prop: Propagation) { + // used in clap_generate (https://github.com/clap-rs/clap_generate) + #[doc(hidden)] + pub fn _build(&mut self, prop: Propagation) { debugln!("App::_build;"); // Make sure all the globally set flags apply to us as well self.settings = self.settings | self.g_settings; @@ -1654,7 +1656,9 @@ impl<'a, 'b> App<'a, 'b> { true } - fn _build_bin_names(&mut self) { + // used in clap_generate (https://github.com/clap-rs/clap_generate) + #[doc(hidden)] + pub fn _build_bin_names(&mut self) { debugln!("App::_build_bin_names;"); for sc in subcommands_mut!(self) { debug!("Parser::build_bin_names:iter: bin_name set...");