honziitko/zig-argparse
A simple CLI argument parsing library for Zig.
A simple CLI argument parser in Zig.
I need an argument parser that supports:
-x
in GCC)The best one, to my knowledge, is zig-args by ikskuh. However, it does not support either of those features mentioned.
Long options
Short options
--
positional directive
Integers
Strings
Choices/modes/enum options
Arbitrary stateless types
Arbitrary arity
Stateful types (e.g. verbosity in ssh)
Positional-bound arguments
There will be no documentation until this evolves into a mature library.
However, if you so insist, look at the commit history of example.zig.