aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-05 12:24:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-12 00:14:07 -0700
commitd2bec8f92f15ac16a0714ddc8282ab31dd5bb889 (patch)
tree1042c874d5d04fb94086df6f51db845ea64c758b /src
parent908c2c902ada674eae30d81a8fb5b6c43cdfe141 (diff)
downloadzig-d2bec8f92f15ac16a0714ddc8282ab31dd5bb889.tar.gz
zig-d2bec8f92f15ac16a0714ddc8282ab31dd5bb889.zip
delete dead CLI usage code from main.zig
Diffstat (limited to 'src')
-rw-r--r--src/main.zig25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main.zig b/src/main.zig
index c7bbb9883c..e00442f399 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -4649,31 +4649,6 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
return cleanExit();
}
-const usage_build =
- \\Usage: zig build [steps] [options]
- \\
- \\ Build a project from build.zig.
- \\
- \\Options:
- \\ -freference-trace[=num] How many lines of reference trace should be shown per compile error
- \\ -fno-reference-trace Disable reference trace
- \\ --summary [mode] Control the printing of the build summary
- \\ all Print the build summary in its entirety
- \\ failures (Default) Only print failed steps
- \\ none Do not print the build summary
- \\ -j<N> Limit concurrent jobs (default is to use all CPU cores)
- \\ --build-file [file] Override path to build.zig
- \\ --cache-dir [path] Override path to local Zig cache directory
- \\ --global-cache-dir [path] Override path to global Zig cache directory
- \\ --zig-lib-dir [arg] Override path to Zig lib directory
- \\ --build-runner [file] Override path to build runner
- \\ --prominent-compile-errors Buffer compile errors and display at end
- \\ --seed [integer] For shuffling dependency traversal order (default: random)
- \\ --fetch Exit after fetching dependency tree
- \\ -h, --help Print this help and exit
- \\
-;
-
fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
var build_file: ?[]const u8 = null;
var override_lib_dir: ?[]const u8 = try EnvVar.ZIG_LIB_DIR.get(arena);