ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
34k stars 2.49k forks source link

compiler: update documentation of the old <name><argument options #19184

Open perillo opened 7 months ago

perillo commented 7 months ago

These options are documented to use the short option variant (e.g. -lc) but compiler frontend also support the standard short option (e.g. -l c).

Here is a list, generated by zig test -h | grep -P " \-.\[":

  -M[name][=src]            Create a module based on the current per-module settings.
  -I[dir]                   Add directory to include search path
  -D[macro]=[value]         Define C [macro] to [value] (1 if [value] omitted)
  -T[script], --script [script]  Use a custom linker script
  -l[lib], --library [lib]       Link against system library (only if actually used)
  -L[d], --library-directory [d] Add a directory to the library search path
  -F[dir]                        (Darwin) add search path for frameworks
perillo commented 7 months ago

UPDATE

These options are supported. The problem is that they may cause confusing error messages when the argument is not specified.