summaryrefslogtreecommitdiff
path: root/clap/streaming.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-13/+21
| | | | | | | | | | | | | | 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-6/+6
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-251-6/+6
| | | | | | | | | 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`
* Refactor the ArgIterator interfaceGravatar Jimmi Holst Christensen2022-01-311-5/+5
| | | | | | | | | They now follow the interface provided by the standard library. This now means that we no longer needs `args.OsIterator` as that the one from `std` can now be used directly. Also remove `args.ShellIterator` as a simular iterator exists in `std` called `ArgIteratorGeneral`.
* Fix chaining typoGravatar Jimmi Holst Christensen2021-11-291-3/+3
| | | | fixes #58
* Stay under 100 chars per line in all the codeGravatar Komari Spaghetti2021-06-241-5/+17
|
* Update to latest zig in preperation for 0.8.0Gravatar Komari Spaghetti2021-05-261-33/+33
|
* Modernize codebaseGravatar Komari Spaghetti2021-05-081-107/+77
| | | | | | | | * 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-19/+21
| | | | | | 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.
* Support all arguments after -- being positionalsGravatar Jimmi Holst Christensen2020-11-211-78/+106
|
* Better parseParamGravatar Jimmi Holst Christensen2020-11-101-9/+1
|
* Improve Diagnostic error message reportingGravatar Jimmi Holst Christensen2020-11-031-14/+78
|
* Replace `var` with `anytype`Gravatar Jimmi Holst Christensen2020-11-021-1/+1
|
* Report error context in Diagnostic (#26)Gravatar Komari Spaghetti2020-11-021-39/+45
|
* parse and validate multiple optionGravatar Asherah Connor2020-08-281-10/+24
|
* update for latest zig (typeOf was renamed)Gravatar dbandstra2019-12-101-1/+1
|
* update for latest zigGravatar dbandstra2019-12-011-13/+13
|
* fmt, mv src/ clap/ and run fmt on buildGravatar Jimmi Holst Christensen2019-10-061-0/+348