Repository navigation
jig 0.3.0
Added
- Repeated flag keys are now allowed within a scope. The merge algorithm
in SPEC §2.8 picks single-mode (≤ 1 unmarked occurrence on each side →
v1 first-occurrence positioning + profile-value override) or repeat
mode (otherwise → emit every unmarked occurrence at its source
position) per key. This unblocks tools that legitimately accept the
same flag more than once:gcc -I /a -I /b,curl --header A --header B,
count flags like-v -v -v. v1 configs resolve byte-identically. - Profile-side
#falsefor a key now clears every default occurrence of
that key (not just one). Combined with subsequentK newvaluelines
this is the markerless "replace defaults" idiom:bare { I #false }
wipes a multi-default-Ilist;custom { I #false; I "/mine" }
replaces it with one new entry. +flag-key prefix as the explicit append marker (SPEC §2.5 rule 0).
Writing+I "/proj"in a profile forces that occurrence to emit at
its own position rather than collapsing with an unmarked default of
the same key. This handles the only case the multiplicity rule cannot
disambiguate: a single default plus a single profile entry that should
add rather than replace.
Removed
- The
DuplicateFlagKeydiagnostic (and the §2.9 constraint behind it)
is gone. Repeating a key is no longer a parse error.
Install: cargo install jig-run
Full changelog: https://github.com/mb1986/jig/blob/main/CHANGELOG.md