mirror of
https://github.com/MasterQ32/zig-args.git
synced 2024-09-08 00:25:42 +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;
|
||||
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", .{});
|
||||
inline for (std.meta.fields(@TypeOf(options.options))) |fld| {
|
||||
|
|
Loading…
Reference in a new issue