fix subcommand is private bug

This commit is contained in:
dylan_DPC 2020-01-01 23:27:44 +05:30
parent fc359e3c46
commit 1c79bb5b28
3 changed files with 5 additions and 11 deletions

View file

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

View file

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

View file

@ -2,7 +2,7 @@ pub mod errors;
pub mod features;
mod arg_matcher;
mod matches;
pub mod matches;
mod parser;
mod validator;