issues
search
00JCIV00
/
cova
Commands, Options, Values, Arguments. A simple yet robust cross-platform command line argument parsing library for Zig.
https://00jciv00.github.io/cova/
MIT License
111
stars
5
forks
source link
v0.7.0-beta Pre-Public Release Goals
#9
Closed
00JCIV00
closed
1 year ago
00JCIV00
commented
1 year ago
[x] Implement basic Argument Parsing for Commands, Options, and Values.
[x] Advanced Parsing:
[x] Handle '=' instead of ' ' between an Option and its Value.
[x] Handle the same Option given multiple times. (Currently takes last value.)
[x] Handle no space ' ' between a Short Option and its Value.
[x] Abbreviated Long Option parsing (i.e. '--long' working for '--long-opt').
[x] Parsing Customization:
[x] Mandate Values be filled.
[x] Custom prefixes for Options.
[x] Custom separator between Options and Values.
[x] Choose behavior for having the same option given multiple times.
[x] Choose whether or not to skip the first Argument (the executable's name).
[x] Setup Features:
[x] Set up the build.zig and build.zig.zon for install and use in other codebases.
[x] Proper library tests.
[x] Initialization
Custom()
methods for Commands and Options.
[x] Setup in Comptime. Use in Runtime.
[x] Validate unique sub Commands, Options, and Values.
[x] Generate Usage/Help sub Commands.
[x] Generate Usage/Help Options.
[x] User formatting options for Usage/Help messages.
[x] Generate Commands from a struct and vice versa.
[x] Compatible nullable fields become Options.
[x] Compatible non-nullable fields become Values.
00JCIV00
commented
1 year ago
Added this late for posterity.
Custom()
methods for Commands and Options.