Skip to content

Commit

Permalink
Adding cli command example
Browse files Browse the repository at this point in the history
  • Loading branch information
BitlyTwiser committed Sep 23, 2024
1 parent def2779 commit e24bd07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const T = struct {
default_name: []const u8 = "test default name",
};

// Example command after compilation:
// ./zig-out/bin/snek -name="test mctest" -location=420 -exists=true
pub fn main() !void {
var cli = try snek(T).init(std.heap.page_allocator);
const parsed_cli = try cli.parse();
Expand Down

0 comments on commit e24bd07

Please sign in to comment.