| ... | ... | @@ -268,13 +268,13 @@ pub const Builder = struct { |
| 268 | 268 | } else if (mem.eql(u8, s, "false")) { |
| 269 | 269 | return false; |
| 270 | 270 | } else { |
| 271 | | %%io.stderr.printf("Expected -O{} to be a boolean, but received '{}'\n", name, s); |
| 271 | %%io.stderr.printf("Expected -D{} to be a boolean, but received '{}'\n", name, s); |
| 272 | 272 | self.markInvalidUserInput(); |
| 273 | 273 | return null; |
| 274 | 274 | } |
| 275 | 275 | }, |
| 276 | 276 | UserValue.List => { |
| 277 | | %%io.stderr.printf("Expected -O{} to be a boolean, but received a list.\n", name); |
| 277 | %%io.stderr.printf("Expected -D{} to be a boolean, but received a list.\n", name); |
| 278 | 278 | self.markInvalidUserInput(); |
| 279 | 279 | return null; |
| 280 | 280 | }, |
| ... | ... | @@ -312,7 +312,7 @@ pub const Builder = struct { |
| 312 | 312 | }); |
| 313 | 313 | }, |
| 314 | 314 | UserValue.Flag => { |
| 315 | | %%io.stderr.printf("Option '-O{}={}' conflicts with flag '-O{}'.\n", name, value, name); |
| 315 | %%io.stderr.printf("Option '-D{}={}' conflicts with flag '-D{}'.\n", name, value, name); |
| 316 | 316 | return true; |
| 317 | 317 | }, |
| 318 | 318 | } |
| ... | ... | @@ -328,11 +328,11 @@ pub const Builder = struct { |
| 328 | 328 | })) { |
| 329 | 329 | switch (prev_value.value) { |
| 330 | 330 | UserValue.Scalar => |s| { |
| 331 | | %%io.stderr.printf("Flag '-O{}' conflicts with option '-O{}={}'.\n", name, name, s); |
| 331 | %%io.stderr.printf("Flag '-D{}' conflicts with option '-D{}={}'.\n", name, name, s); |
| 332 | 332 | return true; |
| 333 | 333 | }, |
| 334 | 334 | UserValue.List => { |
| 335 | | %%io.stderr.printf("Flag '-O{}' conflicts with multiple options of the same name.\n", name); |
| 335 | %%io.stderr.printf("Flag '-D{}' conflicts with multiple options of the same name.\n", name); |
| 336 | 336 | return true; |
| 337 | 337 | }, |
| 338 | 338 | UserValue.Flag => {}, |
| ... | ... | @@ -374,7 +374,7 @@ pub const Builder = struct { |
| 374 | 374 | while (true) { |
| 375 | 375 | const entry = it.next() ?? break; |
| 376 | 376 | if (!entry.value.used) { |
| 377 | | %%io.stderr.printf("Invalid option: -O{}\n\n", entry.key); |
| 377 | %%io.stderr.printf("Invalid option: -D{}\n\n", entry.key); |
| 378 | 378 | self.markInvalidUserInput(); |
| 379 | 379 | } |
| 380 | 380 | } |