CLI: update main usage text

* Organize and reword some stuff
* Add missing usage for `zig reduce`
This commit is contained in:
Andrew Kelley 2023-12-24 18:42:26 -07:00
parent 9141e1a29c
commit 24eec48f60

View File

@ -87,13 +87,15 @@ const normal_usage =
\\ fetch Copy a package into global cache and print its hash \\ fetch Copy a package into global cache and print its hash
\\ init Initialize a Zig package in the current directory \\ init Initialize a Zig package in the current directory
\\ \\
\\ ast-check Look for simple compile errors in any set of files
\\ build-exe Create executable from source or object files \\ build-exe Create executable from source or object files
\\ build-lib Create library from source or object files \\ build-lib Create library from source or object files
\\ build-obj Create object from source or object files \\ build-obj Create object from source or object files
\\ fmt Reformat Zig source into canonical form \\ test Perform unit testing
\\ run Create executable and run immediately \\ run Create executable and run immediately
\\ test Create and run a test build \\
\\ ast-check Look for simple compile errors in any set of files
\\ fmt Reformat Zig source into canonical form
\\ reduce Minimize a bug report
\\ translate-c Convert C code to Zig code \\ translate-c Convert C code to Zig code
\\ \\
\\ ar Use Zig as a drop-in archiver \\ ar Use Zig as a drop-in archiver