Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Sep 16:57
435b3ae

🚀 Release v0.3.0

📝 Changes

argus_is_set() returned true for any option carrying a DEFAULT(), because the macro set .is_set = true in the option initializer, before parsing had run at all (#64).

That field is read in three other places, so the fix repairs those too. Environment variables could never override a default value, which broke the documented command line > environment > default order. Two options with a default in the same FLAG_EXCLUSIVE group reported a conflict even when no arguments were given. And CONFLICT() fired against any option that merely had a default.

Breaking: argus_is_set() now returns false for an option left at its default. If you relied on the old behaviour, test the value itself or invert the condition.