authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-05 12:24:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-12 00:14:07-07:00
logd2bec8f92f15ac16a0714ddc8282ab31dd5bb889
tree1042c874d5d04fb94086df6f51db845ea64c758b
parent908c2c902ada674eae30d81a8fb5b6c43cdfe141

delete dead CLI usage code from main.zig


1 files changed, 0 insertions(+), 25 deletions(-)

src/main.zig-25
...@@ -4649,31 +4649,6 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {...@@ -4649,31 +4649,6 @@ fn cmdInit(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
4649 return cleanExit();4649 return cleanExit();
4650}4650}
46514651
4652const usage_build =
4653 \\Usage: zig build [steps] [options]
4654 \\
4655 \\ Build a project from build.zig.
4656 \\
4657 \\Options:
4658 \\ -freference-trace[=num] How many lines of reference trace should be shown per compile error
4659 \\ -fno-reference-trace Disable reference trace
4660 \\ --summary [mode] Control the printing of the build summary
4661 \\ all Print the build summary in its entirety
4662 \\ failures (Default) Only print failed steps
4663 \\ none Do not print the build summary
4664 \\ -j<N> Limit concurrent jobs (default is to use all CPU cores)
4665 \\ --build-file [file] Override path to build.zig
4666 \\ --cache-dir [path] Override path to local Zig cache directory
4667 \\ --global-cache-dir [path] Override path to global Zig cache directory
4668 \\ --zig-lib-dir [arg] Override path to Zig lib directory
4669 \\ --build-runner [file] Override path to build runner
4670 \\ --prominent-compile-errors Buffer compile errors and display at end
4671 \\ --seed [integer] For shuffling dependency traversal order (default: random)
4672 \\ --fetch Exit after fetching dependency tree
4673 \\ -h, --help Print this help and exit
4674 \\
4675;
4676
4677fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {4652fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
4678 var build_file: ?[]const u8 = null;4653 var build_file: ?[]const u8 = null;
4679 var override_lib_dir: ?[]const u8 = try EnvVar.ZIG_LIB_DIR.get(arena);4654 var override_lib_dir: ?[]const u8 = try EnvVar.ZIG_LIB_DIR.get(arena);