Commit Graph

4 Commits

Author SHA1 Message Date
Jimmi Holst Christensen
34e068756e parsers: Add extra tests to clap.parsers.int 2023-09-10 21:08:11 +02:00
Jimmi Holst Christensen
22c05f4491 parsers: Actually add some documentation to these functions 2023-09-10 21:08:11 +02:00
Jimmi Holst Christensen
7f9eabeecf Add clap.parsers.enumeration for parsing enums
closes #78
2022-07-25 18:16:19 +02:00
Jimmi Holst Christensen
5f7b75d552 Allow for clap to parse argument values into types
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-03-09 18:12:40 +01:00