Add comment for cli example reference

This commit is contained in:
2025-04-06 12:02:24 -04:00
parent dcb962593d
commit 3424217539

View File

@@ -15,6 +15,9 @@ pub fn main() !void {
const gpa = if (is_debug) dba.allocator() else std.heap.smp_allocator; 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. // First we specify what parameters our program can take.
// We can use `parseParamsComptime` to parse a string into an array of `Param(Help)`. // We can use `parseParamsComptime` to parse a string into an array of `Param(Help)`.
const params = comptime clap.parseParamsComptime( const params = comptime clap.parseParamsComptime(