Skip to content

Introduce macros that have different handling of defaults #13

Open
@matejak

Description

@matejak

The ARG_OPTIONAL_REPEATED and ARG_OPTIONAL_INCREMENTAL currently extend their defaults. It may make sense to give a possibility to pick the way defaults are handled, because there are legitimate use cases when users want the defaults to be forgotten if they supply value(s) to these commands (see #12 for more in-depth insights).
The proposal is to introduce two alternatives for each macro that is in question:

  • ARG_OPTIONAL_REPEATED_ADD
  • ARG_OPTIONAL_REPEATED_REPLACE
  • ARG_OPTIONAL_INCREMENTAL_ADD
  • ARG_OPTIONAL_INCREMENTAL_REPLACE

Those macros would accept the same arguments, but they would treat the defaults differently (and also the help message would have to be different).
Any feedback is welcome, but most importantly:

  • Does it look like a good idea?
  • Do the names feel right?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions