diff --git a/src/build/command.rs b/src/build/command.rs index bcc36ea2..dc25447f 100644 --- a/src/build/command.rs +++ b/src/build/command.rs @@ -61,6 +61,9 @@ use crate::build::debug_asserts::assert_app; /// // Your program logic starts here... /// ``` /// [`App::get_matches`]: App::get_matches() +pub type Command<'help> = App<'help>; + +/// Deprecated, replaced with [`Command`] #[derive(Debug, Clone, PartialEq, Eq)] pub struct App<'help> { id: Id, diff --git a/src/build/mod.rs b/src/build/mod.rs index a1b80555..d7d4920a 100644 --- a/src/build/mod.rs +++ b/src/build/mod.rs @@ -25,6 +25,7 @@ pub use arg::Arg; pub use arg_group::ArgGroup; pub use arg_settings::{ArgFlags, ArgSettings}; pub use command::App; +pub use command::Command; pub use possible_value::PossibleValue; pub use value_hint::ValueHint; diff --git a/src/lib.rs b/src/lib.rs index 369ee0d7..54b29c67 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,6 +26,7 @@ #[cfg(not(feature = "std"))] compile_error!("`std` feature is currently required to build `clap`"); +pub use crate::build::Command; pub use crate::build::{ App, AppFlags, AppSettings, Arg, ArgFlags, ArgGroup, ArgSettings, PossibleValue, ValueHint, };