Commit fd41141 1 parent 59bf166 commit fd41141 Copy full SHA for fd41141
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3521,6 +3521,8 @@ impl Arg {
3521
3521
///
3522
3522
/// **NOTE** [`Arg::exclusive(true)`] allows specifying an argument which conflicts with every other argument.
3523
3523
///
3524
+ /// **NOTE:** All arguments implicitly conflict with themselves.
3525
+ ///
3524
3526
/// # Examples
3525
3527
///
3526
3528
/// ```rust
@@ -3623,8 +3625,6 @@ impl Arg {
3623
3625
///
3624
3626
/// **NOTE:** Overriding an argument implies they [conflict][Arg::conflicts_with`].
3625
3627
///
3626
- /// **NOTE:** All arguments implicitly override themselves.
3627
- ///
3628
3628
/// # Examples
3629
3629
///
3630
3630
/// ```rust
Original file line number Diff line number Diff line change @@ -975,7 +975,10 @@ impl Command {
975
975
}
976
976
}
977
977
978
- /// Specifies that all arguments override themselves.
978
+ /// Replace prior occurrences of arguments rather than error
979
+ ///
980
+ /// For any argument that would conflict with itself by default (e.g.
981
+ /// [`ArgAction::Set`][ArgAction::Set], it will now override itself.
979
982
///
980
983
/// This is the equivalent to saying the `foo` arg using [`Arg::overrides_with("foo")`] for all
981
984
/// defined arguments.
You can’t perform that action at this time.
0 commit comments