Skip to content

Releases: n0s4/flags

v0.10.0

11 Oct 21:48
Compare
Choose a tag to compare
  • Add customisable terminal coloring!
  • Remove overriding of stdout/stderr writers
  • Simplify diagnostics

v0.9.0

17 Sep 18:49
Compare
Choose a tag to compare
  • Reworked API with improved error handling.
  • Removed trailing argument parsing temporarily while I work on a better implementation.
  • Switch characters can now be digits.

v0.8.0

19 Aug 20:06
Compare
Choose a tag to compare

Added usage expression generation + small bug fix.

v0.7.0

10 Aug 22:24
Compare
Choose a tag to compare
  • Make subcommands a field of the struct, allowing "global" options.
  • Improve help message to include positional arguments and subcommands.

v0.6.0

30 Jul 18:29
Compare
Choose a tag to compare
  • Big overhaul to how positional arguments are parsed.
    • positionals can be defined in a 'positional' field a la tigerbeetles lib
    • trailing positionals can be collected via buffer or allocator.
  • float types can now be parsed

v0.5.0

28 May 20:22
Compare
Choose a tag to compare
  • Supports 'help' declaration for a free-form description of your command.
  • Supports 'full_help' to override all auto-generated help with a hand-crafted one.
  • Commands are now detected in kebab-case (build_exe: struct {...}, => $ mycommand build-exe ...).
  • All arguments after a -- will be treated as positional arguments, not flags.

v0.4.0

23 May 19:52
Compare
Choose a tag to compare

Renamed the library to 'flags', standardized some internal terminology and did some general cleanup.

v0.3.0

22 May 20:05
Compare
Choose a tag to compare

Big one! Added subcommands, help message generation, and a few more minor updates to examples.

v0.2.0

17 May 15:06
8632348
Compare
Choose a tag to compare

Notes:

  • Positional arguments are now returned separately from the Config struct.
  • Enum values are now parsed in kebab-case
  • User can now modify the maximum number of positional arguments via a public declaration in the root file (a la std_options).

v0.1.0

15 May 20:31
Compare
Choose a tag to compare

First ever release! Still figuring out Zig's package management.