()
| 184 | |
| 185 | #[test] |
| 186 | fn reserved_flags_extracted() { |
| 187 | let d = def("search"); |
| 188 | let parsed = parse_invocation( |
| 189 | &d, |
| 190 | &[ |
| 191 | "foo".to_string(), |
| 192 | "--json".to_string(), |
| 193 | "--project".to_string(), |
| 194 | "/tmp/x".to_string(), |
| 195 | ], |
| 196 | ) |
| 197 | .unwrap(); |
| 198 | assert!(parsed.raw_json); |
| 199 | assert_eq!(parsed.project.as_deref(), Some("/tmp/x")); |
| 200 | } |
| 201 | |
| 202 | #[test] |
| 203 | fn help_flag_short_circuits() { |
nothing calls this directly
no test coverage detected