| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Update README.md.template | 2025-02-24 | 1 | -3/+3 | |
| | | |||||
| * | Patch up README and fix comments in example files. (#143) | 2024-11-25 | 5 | -28/+26 | |
| | | | | The readme was also reflowed to 100 cols. I probably should have put that in a separate commit but oh well. The comments were not subjected to reflowing (yet). | ||||
| * | fix: Subcommand example comments needs a scroll to be read | 2024-10-24 | 1 | -6/+6 | |
| | | |||||
| * | docs: Add subcommand example | 2024-10-24 | 2 | -1/+106 | |
| | | |||||
| * | feat: Support multiple positionals of different types | 2024-10-24 | 3 | -5/+5 | |
| | | |||||
| * | refactor: Always access using full namespace | 2024-10-22 | 5 | -44/+33 | |
| | | | | | This is my new preferred style of programming Zig :) | ||||
| * | Move updated README to template | 2024-09-21 | 1 | -7/+12 | |
| | | |||||
| * | feat: Allow for the assignment separator to be configured | 2024-07-18 | 1 | -0/+3 | |
| | | |||||
| * | Add installation instructions to README | 2024-06-09 | 1 | -0/+15 | |
| | | |||||
| * | Update to latest version of zig | 2024-01-09 | 1 | -0/+6 | |
| | | |||||
| * | Remove the default allocator from `ParseOptions` | 2023-12-13 | 4 | -2/+20 | |
| | | | | | fixes #111 | ||||
| * | Count occurrences of flags (was "Add .count type for flags") (#96) | 2023-04-02 | 5 | -4/+5 | |
| | | | | | | | | | | | | | 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) | ||||
| * | Fix misspelled things | 2023-01-12 | 2 | -2/+2 | |
| | | |||||
| * | Update README template | 2022-07-28 | 1 | -0/+5 | |
| | | |||||
| * | Add clap.parsers.enumeration for parsing enums | 2022-07-25 | 1 | -0/+5 | |
| | | | | | closes #78 | ||||
| * | Update help and usage examples | 2022-03-30 | 2 | -6/+6 | |
| | | |||||
| * | New `help` api that provides options as to how paramters are printed. | 2022-03-30 | 2 | -4/+8 | |
| | | | | | fixes \#28 | ||||
| * | Fix usage output in README | 2022-03-23 | 1 | -1/+1 | |
| | | |||||
| * | Add parseParams and friends | 2022-03-23 | 5 | -25/+29 | |
| | | |||||
| * | Allow for clap to parse argument values into types | 2022-03-09 | 7 | -92/+59 | |
| | | | | | | | | | | | | | | | 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 | 6 | -34/+34 | |
| | | | | | This reverts commit cfaac64c404fb1c2e892880410aa3b7dd881ea58. | ||||
| * | Change clap into generating a struct | 2022-02-25 | 6 | -34/+34 | |
| | | | | | | | | | | 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` | ||||
| * | Fix minor typos in README.md | 2022-02-22 | 1 | -1/+4 | |
| | | |||||
| * | Refactor the ArgIterator interface | 2022-01-31 | 2 | -7/+11 | |
| | | | | | | | | | | 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`. | ||||
| * | Master branch now follows zig master | 2021-12-21 | 1 | -4/+0 | |
| | | | | | | It makes more sense to have the master branch follow zig master, and then create versioned branches to backport bug fixes to if nessesary | ||||
| * | Improve help and usage examples | 2021-11-29 | 3 | -15/+23 | |
| | | | | | | | | | Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57 | ||||
| * | Use debug.print instead of deprecated debug.warn in examples | 2021-07-17 | 3 | -11/+11 | |
| | | | | | fixes comment on #11 | ||||
| * | Update example of `usage` (#45) | 2021-07-06 | 1 | -3/+3 | |
| | | |||||
| * | Update to latest zig in preperation for 0.8.0 | 2021-05-26 | 6 | -24/+16 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2021-05-26 | 6 | -41/+44 | |
| |\ | |||||
| | * | Modernize codebase | 2021-05-08 | 6 | -23/+18 | |
| | | | | | | | | | | | | | | | | | * 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 | 3 | -20/+20 | |
| | | | | | | | | | | | | | 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 | 5 | -5/+5 | |
| |/ | |||||
| * | Deprecate ComptimeClap in favor of parseExv0.3.0 | 2020-11-10 | 2 | -12/+3 | |
| | | |||||
| * | Better parseParam | 2020-11-10 | 2 | -6/+2 | |
| | | |||||
| * | Report error context in Diagnostic (#26) | 2020-11-02 | 4 | -6/+32 | |
| | | |||||
| * | adjust examples, README template | 2020-08-28 | 4 | -9/+17 | |
| | | |||||
| * | Run zig fmt on buildv0.2.0 | 2020-04-18 | 3 | -6/+6 | |
| | | |||||
| * | Merge branch 'master' into zig-master | 2020-04-18 | 2 | -0/+36 | |
| |\ | |||||
| | * | Better readme for usage | 2020-03-05 | 1 | -11/+2 | |
| | | | |||||
| | * | Add clap.usage | 2020-03-05 | 2 | -0/+43 | |
| | | | |||||
| * | | update examples to latest zig | 2020-04-11 | 4 | -5/+4 | |
| | | | |||||
| * | | update for latest zig (varargs is no more) | 2019-12-09 | 3 | -9/+9 | |
| | | | |||||
| * | | update for latest zig | 2019-12-01 | 5 | -6/+6 | |
| |/ | |||||
| * | Add clap.parse as the simplest way of using the lib | 2019-11-27 | 4 | -39/+71 | |
| | | |||||
| * | Breaking: OsIterator will now get the exe on init | 2019-11-09 | 2 | -10/+4 | |
| | | |||||
| * | correct comptime-clap-error.zig example | 2019-08-17 | 2 | -7/+5 | |
| | | |||||
| * | more features in README.md | 2019-08-17 | 1 | -0/+2 | |
| | | |||||
| * | make help message look more like other tools | 2019-08-17 | 1 | -2/+2 | |
| | | |||||
| * | add missing word | 2019-08-17 | 1 | -1/+1 | |
| | | |||||