mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
fix: Rename App to Command
This commit is contained in:
parent
06b269a85a
commit
524e164c31
3 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue