| Commit message (Collapse) | Author | Files | Lines | ||
|---|---|---|---|---|---|
| 2025-07-22 | feat: Add `Diagnostic.reportToFile` | 1 | -1/+1 | ||
| The code for reporting errors became quite verbose after writegate. Reporting to stderr is very common, so this wrapper provides a default, buffered way to report to a file. | |||||
| 2025-07-21 | Update to Zig 0.15.0-dev.1147 | 2 | -35/+39 | ||
| 2024-11-15 | refactor: switch on signedness | 1 | -33/+27 | ||
| 2024-11-15 | fix: add uint parsing function | 1 | -17/+54 | ||
| In order to get the more precise `ParseIntError.InvalidCharacter` error instead of `ParseIntError.Overflow` when a negative number is passed to a usize, uX typed argument, I use the `fmt.parseUnsigned` function. | |||||
| 2024-10-22 | refactor: Always access using full namespace | 4 | -96/+76 | ||
| This is my new preferred style of programming Zig :) | |||||
| 2024-08-30 | adapt to latest zig changes | 1 | -2/+2 | ||
| 2024-08-30 | count codepoints instead of bytes, to determine width | 1 | -0/+102 | ||
| A complete solution would be to count grapheme clusters, but that would require adding a dependency on something like zg. Counting codepoints will ensure that typical non-ASCII text is supported, but you can still throw it off with more complex Unicode constructions, which might not be so useful in help text. Fixes #75 | |||||
| 2024-07-18 | feat: Allow for the assignment separator to be configured | 1 | -116/+159 | ||
| 2023-09-10 | parsers: Add extra tests to `clap.parsers.int` | 1 | -0/+7 | ||
| 2023-09-10 | parsers: Actually add some documentation to these functions | 1 | -2/+10 | ||
| 2022-07-25 | Add clap.parsers.enumeration for parsing enums | 1 | -0/+37 | ||
| closes #78 | |||||
| 2022-03-09 | Allow for clap to parse argument values into types | 3 | -250/+69 | ||
| 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. | |||||
| 2022-02-25 | Revert "Change clap into generating a struct" | 3 | -400/+243 | ||
| This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | |||||
| 2022-02-25 | Change clap into generating a struct | 3 | -243/+400 | ||
| 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` | |||||
| 2022-01-31 | Refactor the ArgIterator interface | 2 | -316/+10 | ||
| 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`. | |||||
| 2021-12-29 | Update usage of process.ArgIterator to be inline with newest zig | 1 | -1/+1 | ||
| Also add windows CI, as this compiler error was only triggered on windows builds | |||||
| 2021-12-06 | zig master updates: allocator changes (#60) | 2 | -6/+6 | ||
| 2021-11-29 | Fix chaining typo | 1 | -3/+3 | ||
| fixes #58 | |||||
| 2021-10-11 | Fix regression in last commit | 1 | -1/+0 | ||
| The importing of builtin was already fixed, so the latest commit applied this fix again, which caused problems | |||||
| 2021-10-11 | zig master updates | 2 | -2/+3 | ||
| 2021-10-09 | Fix uses of builtin | 1 | -1/+1 | ||
| 2021-07-25 | Discard unused variable | 1 | -1/+1 | ||
| 2021-07-16 | Forward diagnostics down to StreamingClap | 1 | -5/+54 | ||
| fixes #46 | |||||
| 2021-06-24 | Fix all new compiler errors from zig master | 2 | -4/+5 | ||
| 2021-06-24 | Fix all new compiler errors from zig master | 2 | -4/+5 | ||
| 2021-06-24 | Stay under 100 chars per line in all the code | 3 | -8/+24 | ||
| 2021-05-26 | Update to latest zig in preperation for 0.8.0 | 3 | -104/+118 | ||
| 2021-05-08 | Modernize codebase | 2 | -117/+87 | ||
| * 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 | |||||
| 2021-04-28 | Refactor Diagnostic (and others) into a ParseOption struct | 2 | -30/+29 | ||
| 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. | |||||
| 2021-01-10 | zig master updates | 1 | -1/+1 | ||
| 2020-11-21 | Support all arguments after -- being positionals | 1 | -78/+106 | ||
| 2020-11-21 | Fix spelling error | 1 | -1/+1 | ||
| 2020-11-21 | Implement ShellIterator | 1 | -0/+262 | ||
| fixes #30 | |||||
| 2020-11-10 | Deprecate ComptimeClap in favor of parseExv0.3.0 | 1 | -4/+4 | ||
| 2020-11-10 | Better parseParam | 2 | -12/+2 | ||
| 2020-11-10 | Better parseParam | 2 | -12/+2 | ||
| 2020-11-03 | Improve Diagnostic error message reporting | 3 | -16/+80 | ||
| 2020-11-03 | Improve Diagnostic error message reporting | 3 | -16/+80 | ||
| 2020-11-02 | Replace `var` with `anytype` | 1 | -1/+1 | ||
| 2020-11-02 | Report error context in Diagnostic (#26) | 2 | -44/+54 | ||
| 2020-11-02 | Report error context in Diagnostic (#26) | 2 | -44/+54 | ||
| 2020-11-01 | use null sentinel in OsIterator (#27) | 1 | -2/+2 | ||
| 2020-09-06 | adjust examples, README template | 1 | -3/+3 | ||
| 2020-09-06 | reverse the order of these | 1 | -9/+9 | ||
| 2020-09-06 | fix up | 1 | -5/+8 | ||
| 2020-09-06 | separate options into single and multiple | 1 | -25/+35 | ||
| This avoids allocations if you never use multiple arguments. | |||||
| 2020-09-06 | parse and validate multiple option | 2 | -18/+39 | ||
| 2020-09-06 | parse multiple options | 1 | -9/+22 | ||
| 2020-08-28 | reverse the order of these | 1 | -9/+9 | ||
| 2020-08-28 | fix up | 1 | -5/+8 | ||