Skip to content

Commit

Permalink
arg: add get_value_terminator() for use by clap_complete
Browse files Browse the repository at this point in the history
Related-to: clap-rs#3022
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Jan 9, 2023
1 parent ac6b4cd commit db812b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/builder/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3880,6 +3880,13 @@ impl Arg {
})
}

/// Get the value terminator for this argument. The value_terminator is a value
/// that terminates parsing of multi-valued arguments.
#[inline]
pub fn get_value_terminator(&self) -> Option<&Str> {
self.terminator.as_ref()
}

/// Get the environment variable name specified for this argument, if any
///
/// # Examples
Expand Down

0 comments on commit db812b3

Please sign in to comment.