mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
Merge #2096
2096: Fix a few documentation typos r=CreepySkeleton a=drguildo Co-authored-by: Simon Morgan <sjm@sjm.io>
This commit is contained in:
commit
6a56a82629
1 changed files with 5 additions and 6 deletions
|
@ -2210,9 +2210,9 @@ impl<'help> Arg<'help> {
|
|||
/// different. `Arg::default_value` *only* takes affect when the user has not provided this arg
|
||||
/// at runtime. `Arg::default_value_if` however only takes effect when the user has not provided
|
||||
/// a value at runtime **and** these other conditions are met as well. If you have set
|
||||
/// `Arg::default_value` and `Arg::default_value_if`, and the user **did not** provide a this
|
||||
/// arg at runtime, nor did were the conditions met for `Arg::default_value_if`, the
|
||||
/// `Arg::default_value` will be applied.
|
||||
/// `Arg::default_value` and `Arg::default_value_if`, and the user **did not** provide this arg
|
||||
/// at runtime, nor were the conditions met for `Arg::default_value_if`, the `Arg::default_value`
|
||||
/// will be applied.
|
||||
///
|
||||
/// **NOTE:** This implicitly sets [`Arg::takes_value(true)`].
|
||||
///
|
||||
|
@ -2403,9 +2403,8 @@ impl<'help> Arg<'help> {
|
|||
/// different. `Arg::default_value` *only* takes affect when the user has not provided this arg
|
||||
/// at runtime. This setting however only takes affect when the user has not provided a value at
|
||||
/// runtime **and** these other conditions are met as well. If you have set `Arg::default_value`
|
||||
/// and `Arg::default_value_if`, and the user **did not** provide a this arg at runtime, nor did
|
||||
/// were the conditions met for `Arg::default_value_if`, the `Arg::default_value` will be
|
||||
/// applied.
|
||||
/// and `Arg::default_value_if`, and the user **did not** provide this arg at runtime, nor were
|
||||
/// the conditions met for `Arg::default_value_if`, the `Arg::default_value` will be applied.
|
||||
///
|
||||
/// **NOTE:** This implicitly sets [`Arg::takes_value(true)`].
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue