File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1088,6 +1088,11 @@ pub trait StructOpt {
1088
1088
1089
1089
/// Gets the struct from any iterator such as a `Vec` of your making.
1090
1090
/// Print the error message and quit the program in case of failure.
1091
+ ///
1092
+ /// **NOTE**: The first argument will be parsed as the binary name unless
1093
+ /// [`AppSettings::NoBinaryName`] has been used.
1094
+ ///
1095
+ /// [`AppSettings::NoBinaryName`]: https://docs.rs/clap/2.33.0/clap/enum.AppSettings.html#variant.NoBinaryName
1091
1096
fn from_iter < I > ( iter : I ) -> Self
1092
1097
where
1093
1098
Self : Sized ,
@@ -1102,6 +1107,11 @@ pub trait StructOpt {
1102
1107
/// Returns a `clap::Error` in case of failure. This does *not* exit in the
1103
1108
/// case of `--help` or `--version`, to achieve the same behavior as
1104
1109
/// `from_iter()` you must call `.exit()` on the error value.
1110
+ ///
1111
+ /// **NOTE**: The first argument will be parsed as the binary name unless
1112
+ /// [`AppSettings::NoBinaryName`] has been used.
1113
+ ///
1114
+ /// [`AppSettings::NoBinaryName`]: https://docs.rs/clap/2.33.0/clap/enum.AppSettings.html#variant.NoBinaryName
1105
1115
fn from_iter_safe < I > ( iter : I ) -> Result < Self , clap:: Error >
1106
1116
where
1107
1117
Self : Sized ,
You can’t perform that action at this time.
0 commit comments