mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
Gate term_width and max_term_width APIs on wrap_help
This commit is contained in:
parent
ea99887967
commit
fd64c8ae93
1 changed files with 2 additions and 0 deletions
|
@ -1074,6 +1074,7 @@ impl Command {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[cfg(any(not(feature = "unstable-v5"), feature = "wrap_help"))]
|
||||
pub fn term_width(mut self, width: usize) -> Self {
|
||||
self.term_w = Some(width);
|
||||
self
|
||||
|
@ -1100,6 +1101,7 @@ impl Command {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[cfg(any(not(feature = "unstable-v5"), feature = "wrap_help"))]
|
||||
pub fn max_term_width(mut self, w: usize) -> Self {
|
||||
self.max_w = Some(w);
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue