summaryrefslogtreecommitdiff
path: root/clap/comptime.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-237/+0
| | | | | | | | | | | | | | 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.
* Revert "Change clap into generating a struct"Gravatar Jimmi Holst Christensen2022-02-251-0/+237
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-251-237/+0
| | | | | | | | | This changes - `.flag`, `.option`, `.options` and `.positionals` are now just fields you access. - Move the current `clap.parse` and friends into `clap.untyped.parse` - This is in preperation for `clap.typed.parse`
* zig master updates: allocator changes (#60)Gravatar Asherah Connor2021-12-061-1/+1
|
* zig master updatesGravatar Asherah Connor2021-10-111-2/+2
|
* Discard unused variableGravatar Sirius9022021-07-251-1/+1
|
* Forward diagnostics down to StreamingClapGravatar Komari Spaghetti2021-07-161-5/+54
| | | | fixes #46
* Fix all new compiler errors from zig masterGravatar Komari Spaghetti2021-06-241-4/+4
|
* Stay under 100 chars per line in all the codeGravatar Komari Spaghetti2021-06-241-2/+1
|
* Update to latest zig in preperation for 0.8.0Gravatar Komari Spaghetti2021-05-261-28/+42
|
* Modernize codebaseGravatar Komari Spaghetti2021-05-081-10/+10
| | | | | | | | * Better naming for variables * Follow naming style of enums * Use `writer()` instead of `outStream()` * Change many initializers to be a one liner * Don't explicitly initialize fields to their default value
* Refactor Diagnostic (and others) into a ParseOption structGravatar Komari Spaghetti2021-04-281-11/+8
| | | | | | This allows for default arguments, which we can also extend without breaking peoples code in the future. This is a breaking change right now though.
* Deprecate ComptimeClap in favor of parseExv0.3.0Gravatar Jimmi Holst Christensen2020-11-101-4/+4
|
* Better parseParamGravatar Jimmi Holst Christensen2020-11-101-3/+1
|
* Improve Diagnostic error message reportingGravatar Jimmi Holst Christensen2020-11-031-1/+1
|
* Report error context in Diagnostic (#26)Gravatar Komari Spaghetti2020-11-021-5/+9
|
* reverse the order of theseGravatar Asherah Connor2020-08-281-9/+9
|
* fix upGravatar Asherah Connor2020-08-281-5/+8
|
* separate options into single and multipleGravatar Asherah Connor2020-08-281-25/+35
| | | | This avoids allocations if you never use multiple arguments.
* parse and validate multiple optionGravatar Asherah Connor2020-08-281-8/+15
|
* parse multiple optionsGravatar Asherah Connor2020-08-281-9/+22
|
* update for latest zigGravatar dbandstra2019-12-011-4/+4
|
* fmt, mv src/ clap/ and run fmt on buildGravatar Jimmi Holst Christensen2019-10-061-0/+143