zig-clap
release 0.10.0
which compiles and works for zig 0.14.0
Features
- Add
assignment_separators
toclap.ParseOptions
- This specifies the list of characters that can separate arguments. By default it is
"="
- Setting
assignment_separators
to"=:"
will make both--some-arg:value
and--some-arg=value
valid argument syntax
- This specifies the list of characters that can separate arguments. By default it is
- Add
terminating_positional
toclap.ParseOptions
- This specifies the last positional index that
zig-clap
will parse before returning - This makes subcommands easier to parse with
zig-clap
- This specifies the last positional index that
- Add
clap.parsers.uint
Changes
clap.HelpOptions.max_width
is now unicode codepoint aware instead of just counting bytesclap.parse
andclap.parseEx
now supports parsing multiple parameters of different typesres.positionals
is now a tuple. Users ofzig-clap
0.9.1
needs to updateres.positionals
tores.positionals[0]
- This allows specifying
program <u8> <str>...
and have@TypeOf(res.positionals[0]) == u8 and @TypeOf(res.positionals[1]) == []const []const u8
- There are some limits to how multiple positional parameters can be defined. See #153