| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove the default allocator from `ParseOptions`no-default-allocator | 2023-12-13 | 1 | -2/+20 | |
| | | | | | fixes #111 | ||||
| * | Count occurrences of flags (was "Add .count type for flags") (#96) | 2023-04-02 | 1 | -4/+5 | |
| | | | | | | | | | | | | | 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 things | 2023-01-12 | 1 | -2/+2 | |
| | | |||||
| * | Add clap.parsers.enumeration for parsing enums | 2022-07-25 | 1 | -0/+5 | |
| | | | | | closes #78 | ||||
| * | Specify which version of Zig zig-clap targets | 2022-07-22 | 1 | -0/+5 | |
| | | | | related #77 | ||||
| * | Update help and usage examples | 2022-03-30 | 1 | -6/+6 | |
| | | |||||
| * | New `help` api that provides options as to how paramters are printed. | 2022-03-30 | 1 | -4/+8 | |
| | | | | | fixes \#28 | ||||
| * | Fix usage output in README | 2022-03-23 | 1 | -1/+1 | |
| | | |||||
| * | Add parseParams and friends | 2022-03-23 | 1 | -25/+29 | |
| | | |||||
| * | Allow for clap to parse argument values into types | 2022-03-09 | 1 | -61/+76 | |
| | | | | | | | | | | | | | | | 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" | 2022-02-25 | 1 | -24/+24 | |
| | | | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | ||||
| * | Change clap into generating a struct | 2022-02-25 | 1 | -24/+24 | |
| | | | | | | | | | | 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` | ||||
| * | Fix minor typos in README.md | 2022-02-22 | 1 | -1/+4 | |
| | | |||||
| * | Refactor the ArgIterator interface | 2022-01-31 | 1 | -4/+6 | |
| | | | | | | | | | | 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`. | ||||
| * | Master branch now follows zig master | 2021-12-21 | 1 | -4/+0 | |
| | | | | | | It makes more sense to have the master branch follow zig master, and then create versioned branches to backport bug fixes to if nessesary | ||||
| * | Improve help and usage examples | 2021-11-29 | 1 | -15/+23 | |
| | | | | | | | | | 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 | ||||
| * | Fix uses of builtin | 2021-10-09 | 1 | -7/+7 | |
| | | |||||
| * | Update example of `usage` (#45) | 2021-07-06 | 1 | -3/+3 | |
| | | |||||
| * | Update to latest zig in preperation for 0.8.0 | 2021-05-26 | 1 | -8/+8 | |
| | | |||||
| * | Modernize codebase | 2021-05-08 | 1 | -22/+16 | |
| | | | | | | | | | * 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 struct | 2021-04-28 | 1 | -14/+12 | |
| | | | | | | | 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.0 | 2020-11-10 | 1 | -54/+2 | |
| | | |||||
| * | Better parseParam | 2020-11-10 | 1 | -6/+2 | |
| | | |||||
| * | Report error context in Diagnostic (#26) | 2020-11-02 | 1 | -6/+32 | |
| | | |||||
| * | adjust examples, README template | 2020-08-28 | 1 | -15/+23 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2020-04-18 | 1 | -0/+36 | |
| |\ | |||||
| | * | Better readme for usage | 2020-03-05 | 1 | -11/+2 | |
| | | | |||||
| | * | Add clap.usage | 2020-03-05 | 1 | -0/+43 | |
| | | | |||||
| * | | rebuild readme | 2020-04-11 | 1 | -5/+4 | |
| | | | |||||
| * | | update for latest zig (varargs is no more) | 2019-12-09 | 1 | -9/+9 | |
| | | | |||||
| * | | update for latest zig | 2019-12-01 | 1 | -6/+6 | |
| |/ | |||||
| * | Add clap.parse as the simplest way of using the lib | 2019-11-27 | 1 | -64/+96 | |
| | | |||||
| * | Breaking: OsIterator will now get the exe on init | 2019-11-09 | 1 | -10/+4 | |
| | | |||||
| * | correct comptime-clap-error.zig example | 2019-08-17 | 1 | -7/+5 | |
| | | |||||
| * | rebuild readme | 2019-08-17 | 1 | -0/+2 | |
| | | |||||
| * | make help message look more like other tools | 2019-08-17 | 1 | -3/+3 | |
| | | |||||
| * | adds parseParam | 2019-08-17 | 1 | -25/+12 | |
| | | | | | a less verbose way of getting a Param(Help). | ||||
| * | build with latest version of zig | 2019-08-06 | 1 | -17/+7 | |
| | | |||||
| * | Embed examples in README during build | 2019-06-21 | 1 | -74/+163 | |
| | | | | | fixes #11 | ||||
| * | Removed duplicate in readme | 2019-01-21 | 1 | -4/+0 | |
| | | |||||
| * | Updated readme | 2019-01-17 | 1 | -12/+10 | |
| | | |||||
| * | Update README.mdv0.1.0 | 2018-12-16 | 1 | -2/+2 | |
| | | |||||
| * | Update README.md | 2018-12-04 | 1 | -5/+5 | |
| | | |||||
| * | Update README.md | 2018-11-16 | 1 | -3/+3 | |
| | | |||||
| * | Changed Names.prefix to Names.both | 2018-11-15 | 1 | -7/+7 | |
| | | |||||
| * | Renamed helpEx to helpFull and added a new helpEx that wraps helpFull | 2018-11-15 | 1 | -38/+4 | |
| | | |||||
| * | Update README.md | 2018-11-15 | 1 | -2/+2 | |
| | | |||||
| * | Added help function | 2018-11-15 | 1 | -0/+73 | |
| | | |||||
| * | Added pub flag/option/positional init funcs to Param | 2018-11-14 | 1 | -6/+6 | |
| | | |||||
| * | Restructured and make StreamingClap simpler | 2018-11-14 | 1 | -4/+96 | |
| | | | | | * Also added a ComptimeClap | ||||