mirror of
https://github.com/clap-rs/clap
synced 2025-01-20 16:43:54 +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]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[cfg(any(not(feature = "unstable-v5"), feature = "wrap_help"))]
|
||||||
pub fn term_width(mut self, width: usize) -> Self {
|
pub fn term_width(mut self, width: usize) -> Self {
|
||||||
self.term_w = Some(width);
|
self.term_w = Some(width);
|
||||||
self
|
self
|
||||||
|
@ -1100,6 +1101,7 @@ impl Command {
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[cfg(any(not(feature = "unstable-v5"), feature = "wrap_help"))]
|
||||||
pub fn max_term_width(mut self, w: usize) -> Self {
|
pub fn max_term_width(mut self, w: usize) -> Self {
|
||||||
self.max_w = Some(w);
|
self.max_w = Some(w);
|
||||||
self
|
self
|
||||||
|
|
Loading…
Reference in a new issue