diff options
Diffstat (limited to 'clap.zig')
| -rw-r--r-- | clap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -293,7 +293,7 @@ pub const Diagnostic = struct { | |||
| 293 | 293 | ||
| 294 | /// Default diagnostics reporter when all you want is English with no colors. | 294 | /// Default diagnostics reporter when all you want is English with no colors. |
| 295 | /// Use this as a reference for implementing your own if needed. | 295 | /// Use this as a reference for implementing your own if needed. |
| 296 | pub fn report(diag: Diagnostic, stream: var, err: anyerror) !void { | 296 | pub fn report(diag: Diagnostic, stream: anytype, err: anyerror) !void { |
| 297 | const prefix = if (diag.name.short) |_| "-" else "--"; | 297 | const prefix = if (diag.name.short) |_| "-" else "--"; |
| 298 | const name = if (diag.name.short) |*c| @as(*const [1]u8, c)[0..] else diag.name.long.?; | 298 | const name = if (diag.name.short) |*c| @as(*const [1]u8, c)[0..] else diag.name.long.?; |
| 299 | 299 | ||