| Commit message (Collapse) | Author | Files | Lines | ||
|---|---|---|---|---|---|
| 2023-12-13 | Remove the default allocator from `ParseOptions`no-default-allocator | 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 | |||||
| 2021-05-26 | Update to latest zig in preperation for 0.8.0 | 1 | -64/+64 | ||
| 2021-05-08 | Modernize codebase | 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 | |||||
| 2021-04-28 | Refactor Diagnostic (and others) into a ParseOption struct | 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. | |||||
| 2021-01-10 | zig master updates | 1 | -21/+21 | ||
| 2020-11-10 | Deprecate ComptimeClap in favor of parseExv0.3.0 | 1 | -5/+16 | ||
| 2020-11-10 | Better parseParam | 1 | -188/+144 | ||
| 2020-11-10 | Better parseParam | 1 | -188/+144 | ||
| 2020-11-03 | Improve Diagnostic error message reporting | 1 | -16/+27 | ||
| 2020-11-03 | Improve Diagnostic error message reporting | 1 | -16/+27 | ||
| 2020-11-02 | Replace `var` with `anytype` | 1 | -1/+1 | ||
| 2020-11-02 | Report error context in Diagnostic (#26) | 1 | -2/+49 | ||
| 2020-11-02 | Report error context in Diagnostic (#26) | 1 | -2/+49 | ||
| 2020-09-06 | fix up | 1 | -2/+2 | ||