This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.
pubconstusage =
\\Usage {s}: [options] file [CC options]\\\\Options:\\ --help Print this message\\ --version Print translate-c version\\ -fmodule-libs Import libraries as modules\\ -fno-module-libs (default) Install libraries next to output file\\ -fpub-static (default) Translate static functions as pub\\ -fno-pub-static Do not translate static functions as pub\\ -ffunc-bodies (default) Translate function bodies\\ -fno-func-bodies Do not translate function bodies\\ -fkeep-macro-literals (default) Preserve macro names for literals\\ -fno-keep-macro-literals Do not preserve macro names for literals\\ -fdefault-init Default initialize struct fields\\ -fno-default-init (default) Do not default initialize struct fields\\ -fstrict-flex-arrays=<n> Control when to treat a trailing array as a flexible array member (default: 2)\\ 0: any trailing array\\ 1: size [0]/[1]/[]\\ 2: size [0]/[]\\ 3: [] only\\\\