Hejsil / zig-clap

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

Indent help text on every new line to allow for user-controlled wrapping #51

Closed squeek502 closed 3 years ago

squeek502 commented 3 years ago

Implements https://github.com/Hejsil/zig-clap/issues/28#issuecomment-913076259

The only change necessary for the zig-master branch would be to update the mem.split(help_text, "\n"); call to mem.split(u8, help_text, "\n");. I will submit a followup PR for that branch if this is merged.

Hejsil commented 3 years ago

Thanks :+1: