Gate term_width and max_term_width APIs on wrap_help

This commit is contained in:
Alex Saveau 2022-11-20 19:33:02 -08:00
parent ea99887967
commit fd64c8ae93
No known key found for this signature in database
GPG key ID: 3F8D5B16EB169D48

View file

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