Hejsil / zig-clap

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

New `help` api that provides options as to how paramters are printed. #74

Closed Hejsil closed 2 years ago

Hejsil commented 2 years ago

New help function that is significantly more powerful and should be extendable without any more breaking changes to it. By default, this function supports a markdown like format where input newlines are only respected in some cases. This can be turned off to make help respect all newlines in the descriptions if desired.

Max width is also supported, which solves #28 (however, the caller needs to figure out the width of the tty).