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
110 stars 5 forks source link

Allow Options to be required during parsing #46

Closed 00JCIV00 closed 11 months ago

00JCIV00 commented 11 months ago

After looking through several other CLI tools, it seems that what Cova calls Options are often not optional. While they should still be optional by default the following two additions will allow for greater flexibility:

  1. Add a mandatory field to a Options.
  2. Add an opt_group_mandatory field to Commands.
00JCIV00 commented 11 months ago

Changed the verbiage from required to mandatory to be more in line with the rest of Cova.

00JCIV00 commented 11 months ago

Implemented in 99290af.