mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
fix subcommand is private bug
This commit is contained in:
parent
fc359e3c46
commit
1c79bb5b28
3 changed files with 5 additions and 11 deletions
12
src/lib.rs
12
src/lib.rs
|
@ -518,18 +518,11 @@
|
|||
unused_allocation,
|
||||
trivial_numeric_casts
|
||||
)]
|
||||
// Need to disable deny(warnings) while deprecations are active
|
||||
// #![cfg_attr(feature = "lints", deny(warnings))]
|
||||
#![cfg_attr(feature = "lints", feature(plugin))]
|
||||
#![cfg_attr(feature = "lints", plugin(clippy))]
|
||||
// #![cfg_attr(feature = "lints", allow(cognitive_complexity))]
|
||||
// #![cfg_attr(feature = "lints", allow(doc_markdown))]
|
||||
// #![cfg_attr(feature = "lints", allow(explicit_iter_loop))]
|
||||
|
||||
pub use crate::build::{App, AppSettings, Arg, ArgGroup, ArgSettings, Propagation};
|
||||
pub use crate::output::fmt::Format;
|
||||
pub use crate::parse::errors::{Error, ErrorKind, Result};
|
||||
pub use crate::parse::{ArgMatches, OsValues, Values};
|
||||
pub use crate::parse::{ArgMatches, OsValues, Values, SubCommand};
|
||||
#[cfg(feature = "yaml")]
|
||||
pub use yaml_rust::YamlLoader;
|
||||
|
||||
|
@ -540,7 +533,8 @@ pub use clap_derive::*;
|
|||
use std::result::Result as StdResult;
|
||||
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
#[allow(missing_docs)]
|
||||
pub mod macros;
|
||||
|
||||
mod build;
|
||||
mod mkeymap;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mod arg_matches;
|
||||
mod matched_arg;
|
||||
mod subcommand;
|
||||
pub mod subcommand;
|
||||
|
||||
pub use self::arg_matches::{ArgMatches, OsValues, Values};
|
||||
pub use self::matched_arg::MatchedArg;
|
||||
|
|
|
@ -2,7 +2,7 @@ pub mod errors;
|
|||
pub mod features;
|
||||
|
||||
mod arg_matcher;
|
||||
mod matches;
|
||||
pub mod matches;
|
||||
mod parser;
|
||||
mod validator;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue