diff options
Diffstat (limited to 'clap.zig')
| -rw-r--r-- | clap.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -368,7 +368,7 @@ pub fn helpFull( | |||
| 368 | var counting_stream = io.countingOutStream(io.null_out_stream); | 368 | var counting_stream = io.countingOutStream(io.null_out_stream); |
| 369 | try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); | 369 | try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); |
| 370 | if (res < counting_stream.bytes_written) | 370 | if (res < counting_stream.bytes_written) |
| 371 | res = counting_stream.bytes_written; | 371 | res = @intCast(usize, counting_stream.bytes_written); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | break :blk res; | 374 | break :blk res; |
| @@ -381,7 +381,7 @@ pub fn helpFull( | |||
| 381 | var counting_stream = io.countingOutStream(stream); | 381 | var counting_stream = io.countingOutStream(stream); |
| 382 | try stream.print("\t", .{}); | 382 | try stream.print("\t", .{}); |
| 383 | try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); | 383 | try printParam(counting_stream.outStream(), Id, param, Error, context, valueText); |
| 384 | try stream.writeByteNTimes(' ', max_spacing - counting_stream.bytes_written); | 384 | try stream.writeByteNTimes(' ', max_spacing - @intCast(usize, counting_stream.bytes_written)); |
| 385 | try stream.print("\t{}\n", .{try helpText(context, param)}); | 385 | try stream.print("\t{}\n", .{try helpText(context, param)}); |
| 386 | } | 386 | } |
| 387 | } | 387 | } |