Skip to content

Commit

Permalink
⬆️ latest version of zig-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Oct 24, 2023
1 parent 5629177 commit 6e5a3ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
.dependencies = .{
.@"zig-cli" = .{
.url = "https://github.com/sam701/zig-cli/archive/ea92821a797bdefb5df41ce602f8c7f387bcfb93.tar.gz",
.hash = "122044525df0d1896556da08c5ed50b456a672a52ab86a65834bb1e27d3ae7a847f2",
.url = "https://github.com/sam701/zig-cli/archive/refs/heads/main.tar.gz",
.hash = "1220fc45b619eb891f7ebfb77d7591b03a50e341394ffe8ae8330a52b76cd8d608d4",
},
},
}
7 changes: 5 additions & 2 deletions src/cmd/cmd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ const gpa_allocator = gpa.allocator();
// * CLI OPTIONS *
// ************************************************************

var config = struct {
proof_mode: bool = false,
}{};

var execute_proof_mode_option = cli.Option{
.long_name = "proof-mode",
.help = "Whether to run in proof mode or not.",
.short_alias = 'p',
.value = cli.OptionValue{ .bool = false },
.value_ref = cli.mkRef(&config.proof_mode),
.required = false,
.value_name = "Proof mode",
};

// ************************************************************
Expand Down

0 comments on commit 6e5a3ee

Please sign in to comment.