diff --git a/src/lib.rs b/src/lib.rs index e155f12..778d045 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,6 @@ use std::ops::Deref; pub mod macros; pub mod tag; -use help::DocParams; use tag::Full; mod error; @@ -24,6 +23,8 @@ pub use error::ArgParseError; #[cfg(feature = "help")] mod help; +#[cfg(feature = "help")] +use help::DocParams; mod types; pub use types::{ArgResult, ArgumentType, DefaultedArgResult}; diff --git a/src/tag.rs b/src/tag.rs index c2331fc..05fe8e5 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -70,6 +70,7 @@ impl Full { /// /// Only available on feature `help`. #[must_use] + #[cfg(feature = "help")] pub fn doc(mut self, doc: S) -> Self { let doc = doc.to_string(); if doc.is_empty() {