summaryrefslogtreecommitdiff
path: root/clap.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--clap.zig7
1 files changed, 1 insertions, 6 deletions
diff --git a/clap.zig b/clap.zig
index 302c8bb..e8a43d0 100644
--- a/clap.zig
+++ b/clap.zig
@@ -641,12 +641,7 @@ test "Diagnostic.report" {
641 641
642/// Options that can be set to customize the behavior of parsing. 642/// Options that can be set to customize the behavior of parsing.
643pub const ParseOptions = struct { 643pub const ParseOptions = struct {
644 /// The allocator used for all memory allocations. Defaults to the `heap.page_allocator`. 644 allocator: mem.Allocator,
645 /// Note: You should probably override this allocator if you are calling `parseEx`. Unlike
646 /// `parse`, `parseEx` does not wrap the allocator so the heap allocator can be
647 /// quite expensive. (TODO: Can we pick a better default? For `parse`, this allocator
648 /// is fine, as it wraps it in an arena)
649 allocator: mem.Allocator = heap.page_allocator,
650 diagnostic: ?*Diagnostic = null, 645 diagnostic: ?*Diagnostic = null,
651}; 646};
652 647