summaryrefslogtreecommitdiff
path: root/clap/parsers.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: switch on signednessGravatar Valentin Charoux2024-11-151-33/+27
|
* fix: add uint parsing functionGravatar Valentin Charoux2024-11-151-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.
* refactor: Always access using full namespaceGravatar Jimmi Holst Christensen2024-10-221-29/+26
| | | | This is my new preferred style of programming Zig :)
* adapt to latest zig changesGravatar owl2024-08-301-2/+2
|
* parsers: Add extra tests to `clap.parsers.int`Gravatar Jimmi Holst Christensen2023-09-101-0/+7
|
* parsers: Actually add some documentation to these functionsGravatar Jimmi Holst Christensen2023-09-101-2/+10
|
* Add clap.parsers.enumeration for parsing enumsGravatar Jimmi Holst Christensen2022-07-251-0/+37
| | | | closes #78
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-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.