| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat: Add `Diagnostic.reportToFile` | 2025-07-22 | 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. | ||||
| * | Update to Zig 0.15.0-dev.1147 | 2025-07-21 | 2 | -35/+39 | |
| | | |||||
| * | refactor: switch on signedness | 2024-11-15 | 1 | -33/+27 | |
| | | |||||
| * | fix: add uint parsing function | 2024-11-15 | 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. | ||||
| * | refactor: Always access using full namespace | 2024-10-22 | 4 | -96/+76 | |
| | | | | | This is my new preferred style of programming Zig :) | ||||
| * | adapt to latest zig changes | 2024-08-30 | 1 | -2/+2 | |
| | | |||||
| * | count codepoints instead of bytes, to determine width | 2024-08-30 | 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 | ||||
| * | feat: Allow for the assignment separator to be configured | 2024-07-18 | 1 | -116/+159 | |
| | | |||||
| * | parsers: Add extra tests to `clap.parsers.int` | 2023-09-10 | 1 | -0/+7 | |
| | | |||||
| * | parsers: Actually add some documentation to these functions | 2023-09-10 | 1 | -2/+10 | |
| | | |||||
| * | Add clap.parsers.enumeration for parsing enums | 2022-07-25 | 1 | -0/+37 | |
| | | | | | closes #78 | ||||
| * | Allow for clap to parse argument values into types | 2022-03-09 | 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. | ||||
| * | Revert "Change clap into generating a struct" | 2022-02-25 | 3 | -400/+243 | |
| | | | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | ||||
| * | Change clap into generating a struct | 2022-02-25 | 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` | ||||
| * | Refactor the ArgIterator interface | 2022-01-31 | 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`. | ||||
| * | Update usage of process.ArgIterator to be inline with newest zig | 2021-12-29 | 1 | -1/+1 | |
| | | | | | | Also add windows CI, as this compiler error was only triggered on windows builds | ||||
| * | Merge branch 'zig-master' | 2021-12-21 | 2 | -9/+9 | |
| |\ | |||||
| | * | zig master updates: allocator changes (#60) | 2021-12-06 | 2 | -6/+6 | |
| | | | |||||
| | * | Fix regression in last commit | 2021-10-11 | 1 | -1/+0 | |
| | | | | | | | | | | | The importing of builtin was already fixed, so the latest commit applied this fix again, which caused problems | ||||
| | * | zig master updates | 2021-10-11 | 2 | -2/+3 | |
| | | | |||||
| | * | Merge branch 'master' into zig-master | 2021-10-09 | 1 | -1/+1 | |
| | |\ | |||||
| | * | | Discard unused variable | 2021-07-25 | 1 | -1/+1 | |
| | | | | |||||
| * | | | Fix chaining typo | 2021-11-29 | 1 | -3/+3 | |
| | |/ |/| | | | | | fixes #58 | ||||
| * | | Fix uses of builtin | 2021-10-09 | 1 | -1/+1 | |
| |/ | |||||
| * | Forward diagnostics down to StreamingClap | 2021-07-16 | 1 | -5/+54 | |
| | | | | | fixes #46 | ||||
| * | Fix all new compiler errors from zig master | 2021-06-24 | 2 | -4/+5 | |
| | | |||||
| * | Stay under 100 chars per line in all the code | 2021-06-24 | 3 | -8/+24 | |
| | | |||||
| * | Update to latest zig in preperation for 0.8.0 | 2021-05-26 | 3 | -104/+118 | |
| | | |||||
| * | Modernize codebase | 2021-05-08 | 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 | ||||
| * | Refactor Diagnostic (and others) into a ParseOption struct | 2021-04-28 | 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. | ||||
| * | Support all arguments after -- being positionals | 2020-11-21 | 1 | -78/+106 | |
| | | |||||
| * | Fix spelling error | 2020-11-21 | 1 | -1/+1 | |
| | | |||||
| * | Implement ShellIterator | 2020-11-21 | 1 | -0/+262 | |
| | | | | | fixes #30 | ||||
| * | Deprecate ComptimeClap in favor of parseExv0.3.0 | 2020-11-10 | 1 | -4/+4 | |
| | | |||||
| * | Better parseParam | 2020-11-10 | 2 | -12/+2 | |
| | | |||||
| * | Improve Diagnostic error message reporting | 2020-11-03 | 3 | -16/+80 | |
| | | |||||
| * | Replace `var` with `anytype` | 2020-11-02 | 1 | -1/+1 | |
| | | |||||
| * | Report error context in Diagnostic (#26) | 2020-11-02 | 2 | -44/+54 | |
| | | |||||
| * | use null sentinel in OsIterator (#27) | 2020-11-01 | 1 | -2/+2 | |
| | | |||||
| * | reverse the order of these | 2020-08-28 | 1 | -9/+9 | |
| | | |||||
| * | fix up | 2020-08-28 | 1 | -5/+8 | |
| | | |||||
| * | separate options into single and multiple | 2020-08-28 | 1 | -25/+35 | |
| | | | | | This avoids allocations if you never use multiple arguments. | ||||
| * | parse and validate multiple option | 2020-08-28 | 2 | -18/+39 | |
| | | |||||
| * | parse multiple options | 2020-08-28 | 1 | -9/+22 | |
| | | |||||
| * | update for latest zig | 2020-03-01 | 1 | -2/+2 | |
| | | |||||
| * | update for latest zig (typeOf was renamed) | 2019-12-10 | 1 | -1/+1 | |
| | | |||||
| * | update for latest zig | 2019-12-01 | 3 | -18/+18 | |
| | | |||||
| * | Breaking: OsIterator will now get the exe on init | 2019-11-09 | 1 | -2/+10 | |
| | | |||||
| * | fmt, mv src/ clap/ and run fmt on build | 2019-10-06 | 3 | -0/+562 | |