diff options
| author | 2020-11-10 18:34:18 +0100 | |
|---|---|---|
| committer | 2020-11-10 18:34:18 +0100 | |
| commit | cc871e7fbf4082fda4f4d1f150746f8090770408 (patch) | |
| tree | a9c9b623ae50f9c834d5f82896d9d2fe28a96db8 /clap.zig | |
| parent | Better parseParam (diff) | |
| parent | Better parseParam (diff) | |
| download | zig-clap-cc871e7fbf4082fda4f4d1f150746f8090770408.tar.gz zig-clap-cc871e7fbf4082fda4f4d1f150746f8090770408.tar.xz zig-clap-cc871e7fbf4082fda4f4d1f150746f8090770408.zip | |
Merge branch 'master' into zig-master
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 | } |