Releases: lucocozz/Argus
Releases · lucocozz/Argus
v0.2.1
Bug Fixes
FLAG_REQUIREDnow enforced on options (#54)
Previously, onlyTYPE_POSITIONALarguments triggered the required check.
A required option (OPTION_STRING,OPTION_INT, etc.) at root or subcommand
level was silently accepted when missing, causingargus_parseto return
ARGUS_SUCCESSand the action handler to run with the option unset (often
segfaulting downstream when callers dereferenced the unset value).
Internal
- Bumped
ARGUS_VERSIONand the Meson project version from0.1.0to0.2.1.
The previous v0.2.0 tag shipped without bumping these constants, so the
library reported0.1.0at runtime even on the latest release. If you were
on v0.2.0,printf("%s", ARGUS_VERSION)will now correctly print0.2.1. - CI: Ubuntu artifact step is now version-agnostic (no hardcoded
libargus.so.0.1.0).
Tests
- Added 4 regression tests covering
FLAG_REQUIREDenforcement on options at
both root-level and subcommand scopes.
Note
Issue #53 (V_CHOICE_STR
validator not detecting errors on subcommands) was already fixed in v0.2.0 by
commit c15296a — users
who experienced this on v0.1.0 should now see it working correctly.
Full Changelog: v0.2.0...v0.2.1
v0.2.0
🚀 Release v0.2.0
📝 Changes
Added
- Printing subcommand list on command execution that cannot be executed directly.
- Support for variadic positional arguments, allowing multiple values for a single positional argument.
Changed
- Changed help output DEFAULT_MAX_LINE_WIDTH from 80 to 100.
- Changed
ARGUS_RELEASEintoARGUS_DEBUG
Fixed
- Disabled pedantic option on library compilation.
- Defining
argus_init()as astatic inlinefunction. - Fixed unexecuted validators in subcommand.
Removed
- Group description option.
- Cleanup non essential regex patterns.