summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-06 12:02:24 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-06 13:08:09 -0400
commit3424217539f5bd43ccc79ad2bdec5285ca932f61 (patch)
tree485f28bf534e819382be507ad054bf2cde4d7295 /src/main.zig
parentdcb962593def256704038c7292c2df55953747b2 (diff)
Add comment for cli example reference
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index a371bb5..e081303 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -15,6 +15,9 @@ pub fn main() !void {
const gpa = if (is_debug) dba.allocator() else std.heap.smp_allocator;
+ // CLI parsing adapted from the example here
+ // https://github.com/Hejsil/zig-clap/blob/e47028deaefc2fb396d3d9e9f7bd776ae0b2a43a/README.md#examples
+
// First we specify what parameters our program can take.
// We can use `parseParamsComptime` to parse a string into an array of `Param(Help)`.
const params = comptime clap.parseParamsComptime(