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

Rename Callback Functions #40

Closed 00JCIV00 closed 1 year ago

00JCIV00 commented 1 year ago

Rename callback functions (and potentially other fields) that can be set via both a Config Struct and directly on an instance of an Argument Type:

  1. No prefix: This is reserved for fields set directly on the instance of an Argument Type.
  2. child_type_ prefix: This will be for fields in a Config Struct that are set based on a specific Child Type (Options and Values only).
  3. global_ prefix: This will be for fields in a Config Struct that are set for ALL instances of the corresponding Argument Type. Think of it as changing the default behavior for that Argument Type.

When being processed the order of precedence will be as listed above ending in the default behavior of Cova.

The intent here is to make the usage of these callback functions and fields a bit more clear without needing to refer to the Docs as often.

00JCIV00 commented 1 year ago

Closed w/ db99e1d.