File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
217217 std:: process:: exit ( 0 ) ;
218218 }
219219 if param_str. starts_with ( '-' ) {
220- return Err ( format ! ( "Unknown option: {param:?}" ) ) ;
220+ return Err ( format ! ( "unrecognized option: {param:?}" ) ) ;
221221 }
222222 if from. is_none ( ) {
223223 from = Some ( param) ;
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
195195 Err ( error) => return Err ( error) ,
196196 }
197197 if param. to_string_lossy ( ) . starts_with ( '-' ) {
198- return Err ( format ! ( "Unknown option: {param:?}" ) ) ;
198+ return Err ( format ! ( "unrecognized option: {param:?}" ) ) ;
199199 }
200200 if from. is_none ( ) {
201201 from = Some ( param) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ mod common {
3939 cmd. assert ( )
4040 . code ( predicate:: eq ( 2 ) )
4141 . failure ( )
42- . stderr ( predicate:: str:: starts_with ( "Unknown option: \" --foobar\" " ) ) ;
42+ . stderr ( predicate:: str:: starts_with (
43+ "unrecognized option: \" --foobar\" " ,
44+ ) ) ;
4345 }
4446 Ok ( ( ) )
4547 }
You can’t perform that action at this time.
0 commit comments