Skip to content

Commit

Permalink
Merge pull request clap-rs#4495 from SUPERCILEX/term-width
Browse files Browse the repository at this point in the history
Gate term_width and max_term_width APIs on wrap_help
  • Loading branch information
epage committed Nov 21, 2022
2 parents ea99887 + fd64c8a commit f5dcfc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f5dcfc5

Please sign in to comment.