| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Update to latest zig0.9.0 | 2024-06-16 | 1 | -4/+4 | |
| | | | | | | | See https://github.com/ziglang/zig/pull/19847 Compatibility with Zig 0.13.0 remains unchanged | ||||
| * | Arguments: Ensure no member of `fields` is undefined | 2024-03-30 | 1 | -2/+9 | |
| | | | | | related #122 | ||||
| * | Updated to latest zig | 2024-03-12 | 1 | -1/+1 | |
| | | |||||
| * | Update to latest version of zig | 2024-01-09 | 1 | -2/+2 | |
| | | |||||
| * | Remove the default allocator from `ParseOptions` | 2023-12-13 | 1 | -6/+1 | |
| | | | | | fixes #111 | ||||
| * | Fix short only params not getting fields in `Arguments` | 2023-11-16 | 1 | -10/+11 | |
| | | | | | fixes #84 | ||||
| * | Update to latest zig | 2023-06-27 | 1 | -12/+12 | |
| | | |||||
| * | Update to latest zig | 2023-06-22 | 1 | -2/+2 | |
| | | |||||
| * | Update to latest version of zig | 2023-06-18 | 1 | -1/+1 | |
| | | |||||
| * | help,usage: Support multiple positionals (#97) | 2023-06-15 | 1 | -16/+43 | |
| | | |||||
| * | Count occurrences of flags (was "Add .count type for flags") (#96) | 2023-04-02 | 1 | -5/+21 | |
| | | | | | | | | | | | | | 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) | ||||
| * | chore: update to latest master | 2023-02-22 | 1 | -2/+2 | |
| | | | | | update to follow latest for loop syntax | ||||
| * | Fix misspelled things | 2023-01-12 | 1 | -9/+9 | |
| | | |||||
| * | Update to latest Zig master | 2022-12-20 | 1 | -4/+4 | |
| | | | | | Rename `builtin.Struct.field_type` to `builtin.Struct.type`. | ||||
| * | Handle change to std.ArrayList(T).toOwnedSlice() | 2022-12-01 | 1 | -3/+3 | |
| | | | | | toOwnedSlice() now returns an error union | ||||
| * | Workaround stage2 bug | 2022-11-22 | 1 | -1/+3 | |
| | | |||||
| * | Fix regression from last commit | 2022-10-03 | 1 | -11/+14 | |
| | | |||||
| * | Add function for getting the prefix of a param name | 2022-10-03 | 1 | -15/+19 | |
| | | |||||
| * | use builtin.Type instead of deprecated builtin.TypeInfo | 2022-09-18 | 1 | -1/+1 | |
| | | | | | Syncs with latest zig master version 0.10.0-dev.4117+54854e2ab | ||||
| * | Fix zig-clap for new default compiler | 2022-08-25 | 1 | -37/+50 | |
| | | | | | | Also enable test suit for both stage 1 and stage 2, to ensure we don't break things for people who haven't switched yet. | ||||
| * | Have all tests have a name | 2022-07-28 | 1 | -1/+1 | |
| | | | | | fixes #79 | ||||
| * | Print multi value positionals correctly in `usage` | 2022-04-28 | 1 | -0/+6 | |
| | | |||||
| * | New `help` api that provides options as to how paramters are printed. | 2022-03-30 | 1 | -92/+686 | |
| | | | | | fixes \#28 | ||||
| * | Fix long param parsing with '-' and '\_' in name | 2022-03-24 | 1 | -2/+6 | |
| | | |||||
| * | Add parseParams and friends | 2022-03-23 | 1 | -341/+389 | |
| | | |||||
| * | Refactor parseParam into a state machine | 2022-03-23 | 1 | -64/+279 | |
| | | | | | | | This new parser stops when it hits something that looks like a new parameter. This is the precurser to parsing multiple parameters in a single function. | ||||
| * | Workaround infinit loop caused by `try` inside `inline for` | 2022-03-21 | 1 | -19/+59 | |
| | | | | | fixes #72 | ||||
| * | Allow for clap to parse argument values into types | 2022-03-09 | 1 | -181/+365 | |
| | | | | | | | | | | | | | | | 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 | -48/+217 | |
| | | | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | ||||
| * | Change clap into generating a struct | 2022-02-25 | 1 | -217/+48 | |
| | | | | | | | | | | 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 | 1 | -4/+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`. | ||||
| * | Avoid using the print API | 2022-01-05 | 1 | -23/+37 | |
| | | | | | | | The current Zig print API is quite good at slowing down compilation and producing binary bloat. This commit makes an attempt to avoid using it when not nessesary. | ||||
| * | zig master updates: allocator changes (#60) | 2021-12-06 | 1 | -2/+2 | |
| | | |||||
| * | Update mem.split call for latest zig master | 2021-09-06 | 1 | -1/+1 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2021-09-05 | 1 | -1/+14 | |
| |\ | |||||
| | * | Indent help text on every new line to allow for user-controlled wrapping | 2021-09-05 | 1 | -1/+14 | |
| | | | |||||
| | * | Fix all new compiler errors from zig master | 2021-06-24 | 1 | -1/+1 | |
| | | | |||||
| * | | Update calls to tokenizer | 2021-08-11 | 1 | -1/+1 | |
| | | | | | | | | | | | The tokenize function was made generic, so we have to pass the type as the first parameter. | ||||
| * | | Fix all new compiler errors from zig master | 2021-06-24 | 1 | -1/+1 | |
| |/ | |||||
| * | Stay under 100 chars per line in all the code | 2021-06-24 | 1 | -33/+87 | |
| | | |||||
| * | parseParam: Set eval quota to std.math.maxInt(u32) | 2021-06-24 | 1 | -0/+10 | |
| | | | | | fixes #42 related #39 | ||||
| * | parse: Copy in arena after using it in parseEx | 2021-06-24 | 1 | -11/+9 | |
| | | | | | fixes #43 | ||||
| * | Update to latest zig in preperation for 0.8.0 | 2021-05-26 | 1 | -64/+64 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2021-05-26 | 1 | -147/+94 | |
| |\ | |||||
| | * | Modernize codebase | 2021-05-08 | 1 | -140/+71 | |
| | | | | | | | | | | | | | | | | | * 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 | -10/+26 | |
| | | | | | | | | | | | | | 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. | ||||
| * | | zig master updates | 2021-01-10 | 1 | -21/+21 | |
| |/ | |||||
| * | Deprecate ComptimeClap in favor of parseExv0.3.0 | 2020-11-10 | 1 | -5/+16 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2020-11-10 | 1 | -2/+2 | |
| |\ | |||||
| | * | Better parseParam | 2020-11-10 | 1 | -188/+144 | |
| | | | |||||