fix: Rename App to Command

This commit is contained in:
Ed Page 2022-02-14 15:32:07 -06:00
parent 06b269a85a
commit 524e164c31
3 changed files with 5 additions and 0 deletions

View file

@ -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,

View file

@ -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;

View file

@ -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,
};