summaryrefslogtreecommitdiff
path: root/example/help.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Always access using full namespaceGravatar Jimmi Holst Christensen2024-10-221-4/+4
| | | | This is my new preferred style of programming Zig :)
* Remove the default allocator from `ParseOptions`Gravatar Jimmi Holst Christensen2023-12-131-1/+6
| | | | fixes #111
* 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)
* Update help and usage examplesGravatar Jimmi Holst Christensen2022-03-301-3/+4
|
* New `help` api that provides options as to how paramters are printed.Gravatar Jimmi Holst Christensen2022-03-301-1/+1
| | | | fixes \#28
* Add parseParams and friendsGravatar Jimmi Holst Christensen2022-03-231-4/+5
|
* Allow for clap to parse argument values into typesGravatar Jimmi Holst Christensen2022-03-091-4/+4
| | | | | | | | | | | | | | 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-5/+5
| | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58.
* Change clap into generating a structGravatar Jimmi Holst Christensen2022-02-251-5/+5
| | | | | | | | | 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`
* Improve help and usage examplesGravatar Jimmi Holst Christensen2021-11-291-7/+10
| | | | | | | | Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57
* Update to latest zig in preperation for 0.8.0Gravatar Komari Spaghetti2021-05-261-1/+1
|
* Modernize codebaseGravatar Komari Spaghetti2021-05-081-5/+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
* update examples to latest zigGravatar joachimschmidt5572020-04-111-2/+1
|
* update for latest zigGravatar dbandstra2019-12-011-2/+2
|
* adds parseParamGravatar Jimmi Holst Christensen2019-08-171-10/+4
| | | | a less verbose way of getting a Param(Help).
* Embed examples in README during buildGravatar Jimmi HC2019-06-211-0/+25
fixes #11