This would allow command -a something -a "something else" to save both values passed to a.
This does not go against the goal of being a non-allocating clap. zig-clap will not allocate by default, but we can't stop users from allocating in custom argument parsing function.
Currently, we are able to parse strings to a few different types depending on the type of the fields we are trying to set.
I don't think we should try to support more than the basic types (and
[]const u8
), but the user should be able to provide custom parser:This would allow
command -a something -a "something else"
to save both values passed toa
.This does not go against the goal of being a non-allocating clap.
zig-clap
will not allocate by default, but we can't stop users from allocating in custom argument parsing function.