From f0a281ffe91fb64f116dcb04c34cecef70e8c79c Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Thu, 18 Jul 2024 16:56:11 +0200 Subject: feat: Allow for the assignment separator to be configured --- example/simple-ex.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example') diff --git a/example/simple-ex.zig b/example/simple-ex.zig index 436d058..2943f4e 100644 --- a/example/simple-ex.zig +++ b/example/simple-ex.zig @@ -34,6 +34,9 @@ pub fn main() !void { var res = clap.parse(clap.Help, ¶ms, parsers, .{ .diagnostic = &diag, .allocator = gpa.allocator(), + // The assignment separator can be configured. `--number=1` and `--number:1` is now + // allowed. + .assignment_separators = "=:", }) catch |err| { diag.report(io.getStdErr().writer(), err) catch {}; return err; -- cgit v1.2.3