summaryrefslogtreecommitdiff
path: root/clap/parsers.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-11-15refactor: switch on signednessGravatar Valentin Charoux1-33/+27
2024-11-15fix: add uint parsing functionGravatar Valentin Charoux1-17/+54
In order to get the more precise `ParseIntError.InvalidCharacter` error instead of `ParseIntError.Overflow` when a negative number is passed to a usize, uX typed argument, I use the `fmt.parseUnsigned` function.
2024-10-22refactor: Always access using full namespaceGravatar Jimmi Holst Christensen1-29/+26
This is my new preferred style of programming Zig :)
2024-08-30adapt to latest zig changesGravatar owl1-2/+2
2023-09-10parsers: Add extra tests to `clap.parsers.int`Gravatar Jimmi Holst Christensen1-0/+7
2023-09-10parsers: Actually add some documentation to these functionsGravatar Jimmi Holst Christensen1-2/+10
2022-07-25Add clap.parsers.enumeration for parsing enumsGravatar Jimmi Holst Christensen1-0/+37
closes #78
2022-03-09Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen1-0/+48
This changes - `.flag`, `.option`, `.options` and `.positionals` are now just fields you access on the result of `parse` and `parseEx`. - `clap.ComptimeClap` has been removed. - `clap.StreamingClap` is now called `clap.streaming.Clap` - `parse` and `parseEx` now takes a `value_parsers` argument that provides the parsers to parse values. - Remove `helpEx`, `helpFull`, `usageEx` and `usageFull`. They now just expect `Id` to have methods for getting the description and value texts.