Hejsil / zig-clap

Command line argument parsing library
MIT License
939 stars 67 forks source link

no field or member function named print in `fs.File` #130

Closed wozniak closed 3 months ago

wozniak commented 3 months ago

This is probably due to a breaking change in stdlib (or something I did wrong). I am just using the example in the readme

clap.zig:569:58: error: no field or member function named 'print' in 'fs.File'
            streaming.Error.DoesntTakeValue => try stream.print(
                                                   ~~~~~~^~~~~~
/usr/lib/zig/lib/std/fs/File.zig:1:1: note: struct declared here
/// The OS-specific file descriptor or file handle.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wozniak commented 3 months ago

nvm i'm stupid i just forgot to do .writer()