mirror of
https://github.com/MasterQ32/zig-args.git
synced 2024-09-16 20:24:03 +02:00
Fix optional usage in README example
This commit is contained in:
parent
89f18a104d
commit
062303e29f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ const options = argsParser.parseForCurrentProcess(struct {
|
||||||
}, argsAllocator, .print) catch return 1;
|
}, argsAllocator, .print) catch return 1;
|
||||||
defer options.deinit();
|
defer options.deinit();
|
||||||
|
|
||||||
std.debug.print("executable name: {s}\n", .{options.executable_name});
|
std.debug.print("executable name: {?s}\n", .{options.executable_name});
|
||||||
|
|
||||||
std.debug.print("parsed options:\n", .{});
|
std.debug.print("parsed options:\n", .{});
|
||||||
inline for (std.meta.fields(@TypeOf(options.options))) |fld| {
|
inline for (std.meta.fields(@TypeOf(options.options))) |fld| {
|
||||||
|
|
Loading…
Reference in a new issue