Skip to content

Commit

Permalink
delete dead CLI usage code from main.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jul 9, 2024
1 parent a1c24ef commit 626597b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 626597b

Please sign in to comment.