mirror of
https://github.com/MasterQ32/zig-args.git
synced 2024-09-16 20:24:03 +02:00
Run zig fmt
This commit is contained in:
parent
444f603812
commit
9cf8d73bdc
2 changed files with 22 additions and 24 deletions
6
args.zig
6
args.zig
|
@ -1017,8 +1017,6 @@ pub fn printHelp(comptime Generic: type, name: []const u8, writer: anytype) !voi
|
|||
try writer.print(fmtString, .{ field.name, @field(Generic.meta.option_docs, field.name) });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1038,7 +1036,7 @@ test "full help" {
|
|||
.option_docs = .{
|
||||
.boolflag = "a boolean flag",
|
||||
.stringflag = "a string flag",
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1075,7 +1073,7 @@ test "help with no usage summary" {
|
|||
.option_docs = .{
|
||||
.boolflag = "a boolean flag",
|
||||
.stringflag = "a string flag",
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
|
2
demo.zig
2
demo.zig
|
@ -35,7 +35,7 @@ pub fn main() !u8 {
|
|||
.unsigned_number = "unsigned_number help",
|
||||
.mode = "mode help",
|
||||
.help = "help help",
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue