| Commit message (Collapse) | Author | Files | Lines | ||
|---|---|---|---|---|---|
| 2024-10-24 | feat: Support multiple positionals of different types | 1 | -68/+182 | ||
| 2024-10-22 | refactor: positonals type now depend on the number of values taken | 1 | -35/+94 | ||
| For `Values.one` positionals will be of type `?T` For `Values.many` positonals will be of type `[]const T` | |||||
| 2024-10-22 | refactor: Always access using full namespace | 1 | -95/+88 | ||
| This is my new preferred style of programming Zig :) | |||||
| 2024-10-22 | feat: Add `terminating_positional` to `clap.ParseOptions` | 1 | -3/+49 | ||
| This option makes `clap.parse` and `clap.parseEx` stop parsing after encountering a certain positional index. Setting `terminating_positional` to 0 will make them stop parsing after the 0th positional has been added to `positionals` (aka after parsing 1 positional) | |||||
| 2024-10-22 | chore: Correct eval branch quota comment in `countParams` | 1 | -2/+2 | ||
| 2024-10-22 | refactor: Remove workaround in `parseEx` that required `anyerror` | 1 | -47/+22 | ||
| 2024-08-30 | adapt to latest zig changes | 1 | -3/+3 | ||
| 2024-08-30 | count codepoints instead of bytes, to determine width | 1 | -16/+60 | ||
| 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 | -0/+23 | ||
| 2024-06-16 | Update to latest zig0.9.0 | 1 | -4/+4 | ||
| See https://github.com/ziglang/zig/pull/19847 Compatibility with Zig 0.13.0 remains unchanged | |||||
| 2024-03-30 | Arguments: Ensure no member of `fields` is undefined | 1 | -2/+9 | ||
| related #122 | |||||
| 2024-03-12 | Updated to latest zig | 1 | -1/+1 | ||
| 2024-01-09 | Update to latest version of zig | 1 | -2/+2 | ||
| 2023-12-13 | Remove the default allocator from `ParseOptions` | 1 | -6/+1 | ||
| fixes #111 | |||||
| 2023-11-16 | Fix short only params not getting fields in `Arguments` | 1 | -10/+11 | ||
| fixes #84 | |||||
| 2023-06-27 | Update to latest zig | 1 | -12/+12 | ||
| 2023-06-22 | Update to latest zig | 1 | -2/+2 | ||
| 2023-06-18 | Update to latest version of zig | 1 | -1/+1 | ||
| 2023-06-15 | help,usage: Support multiple positionals (#97) | 1 | -16/+43 | ||
| 2023-04-02 | Count occurrences of flags (was "Add .count type for flags") (#96) | 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) | |||||
| 2023-02-22 | chore: update to latest master | 1 | -2/+2 | ||
| update to follow latest for loop syntax | |||||
| 2023-01-12 | Fix misspelled things | 1 | -9/+9 | ||
| 2022-12-20 | Update to latest Zig master | 1 | -4/+4 | ||
| Rename `builtin.Struct.field_type` to `builtin.Struct.type`. | |||||
| 2022-12-01 | Handle change to std.ArrayList(T).toOwnedSlice() | 1 | -3/+3 | ||
| toOwnedSlice() now returns an error union | |||||
| 2022-11-22 | Workaround stage2 bug | 1 | -1/+3 | ||
| 2022-10-03 | Fix regression from last commit | 1 | -11/+14 | ||
| 2022-10-03 | Add function for getting the prefix of a param name | 1 | -15/+19 | ||
| 2022-09-18 | use builtin.Type instead of deprecated builtin.TypeInfo | 1 | -1/+1 | ||
| Syncs with latest zig master version 0.10.0-dev.4117+54854e2ab | |||||
| 2022-08-25 | Fix zig-clap for new default compiler | 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. | |||||
| 2022-07-28 | Have all tests have a name | 1 | -1/+1 | ||
| fixes #79 | |||||
| 2022-04-28 | Print multi value positionals correctly in `usage` | 1 | -0/+6 | ||
| 2022-03-30 | New `help` api that provides options as to how paramters are printed. | 1 | -92/+686 | ||
| fixes \#28 | |||||
| 2022-03-24 | Fix long param parsing with '-' and '\_' in name | 1 | -2/+6 | ||
| 2022-03-23 | Add parseParams and friends | 1 | -341/+389 | ||
| 2022-03-23 | Refactor parseParam into a state machine | 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. | |||||
| 2022-03-21 | Workaround infinit loop caused by `try` inside `inline for` | 1 | -19/+59 | ||
| fixes #72 | |||||
| 2022-03-09 | Allow for clap to parse argument values into types | 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. | |||||
| 2022-02-25 | Revert "Change clap into generating a struct" | 1 | -48/+217 | ||
| This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | |||||
| 2022-02-25 | Change clap into generating a struct | 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` | |||||
| 2022-01-31 | Refactor the ArgIterator interface | 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`. | |||||
| 2022-01-05 | Avoid using the print API | 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. | |||||
| 2021-12-06 | zig master updates: allocator changes (#60) | 1 | -2/+2 | ||
| 2021-09-06 | Update mem.split call for latest zig master | 1 | -1/+1 | ||
| 2021-09-05 | Indent help text on every new line to allow for user-controlled wrapping | 1 | -1/+14 | ||
| 2021-08-11 | Update calls to tokenizer | 1 | -1/+1 | ||
| The tokenize function was made generic, so we have to pass the type as the first parameter. | |||||
| 2021-06-24 | Fix all new compiler errors from zig master | 1 | -1/+1 | ||
| 2021-06-24 | Fix all new compiler errors from zig master | 1 | -1/+1 | ||
| 2021-06-24 | Stay under 100 chars per line in all the code | 1 | -33/+87 | ||
| 2021-06-24 | parseParam: Set eval quota to std.math.maxInt(u32) | 1 | -0/+10 | ||
| fixes #42 related #39 | |||||
| 2021-06-24 | parse: Copy in arena after using it in parseEx | 1 | -11/+9 | ||
| fixes #43 | |||||