summaryrefslogtreecommitdiff
path: root/example/simple.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Count occurrences of flags (was "Add .count type for flags") (#96)Gravatar Devin J. Pohly2023-04-021-1/+1
| | | | | | | | | | | | Breaking change: parseEx now counts the number of occurrences of flag parameters (those with takes_value == .none) and returns the count as a u8. Users of the library will need to change if (arg_result.my_flag) to if (arg_result.my_flag != 0)
* Fix misspelled thingsGravatar Jimmi Holst Christensen2023-01-121-1/+1
|
* Add parseParams and friendsGravatar Jimmi Holst Christensen2022-03-231-7/+8
|
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-11/+13
| | | | | | | | | | | | | | 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-10/+10
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-251-10/+10
| | | | | | | | | 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`
* Use debug.print instead of deprecated debug.warn in examplesGravatar Komari Spaghetti2021-07-171-4/+4
| | | | fixes comment on #11
* Update to latest zig in preperation for 0.8.0Gravatar Komari Spaghetti2021-05-261-3/+3
|
* Modernize codebaseGravatar Komari Spaghetti2021-05-081-1/+2
| | | | | | | | * 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-6/+5
| | | | | | 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.
* Better parseParamGravatar Jimmi Holst Christensen2020-11-101-3/+1
|
* Report error context in Diagnostic (#26)Gravatar Komari Spaghetti2020-11-021-1/+10
|
* adjust examples, README templateGravatar Asherah Connor2020-08-281-3/+6
|
* Run zig fmt on buildv0.2.0Gravatar Jimmi Holst Christensen2020-04-181-2/+2
|
* update examples to latest zigGravatar joachimschmidt5572020-04-111-1/+1
|
* update for latest zig (varargs is no more)Gravatar dbandstra2019-12-091-3/+3
|
* update for latest zigGravatar dbandstra2019-12-011-1/+1
|
* Add clap.parse as the simplest way of using the libGravatar Jimmi Holst Christensen2019-11-271-0/+26