Skip to content

fix(contacts): guard --from-file against all conflicting flags#439

Merged
steipete merged 2 commits intosteipete:mainfrom
klodr:fix/contacts-from-file-flags
Apr 20, 2026
Merged

fix(contacts): guard --from-file against all conflicting flags#439
steipete merged 2 commits intosteipete:mainfrom
klodr:fix/contacts-from-file-flags

Conversation

@klodr
Copy link
Copy Markdown
Contributor

@klodr klodr commented Mar 11, 2026

Flags --org, --title, --url, --note, --address and --custom were missing from the conflict check that rejects mixing --from-file with individual update flags. Omitting them meant the guard could be silently bypassed, letting users pass contradictory inputs without an error.

Added all six flags to the existing conditional, and extended TestContactsUpdate_FromFile_CantCombineWithFlags with a table-driven sub-test covering each previously unguarded flag.

Valentin (developer-digital) and others added 2 commits March 11, 2026 07:26
Flags --org, --title, --url, --note, --address and --custom were
missing from the conflict check that rejects mixing --from-file with
individual update flags. Omitting them meant the guard could be
silently bypassed, letting users pass contradictory inputs without
an error.

Added all six flags to the existing conditional, and extended
TestContactsUpdate_FromFile_CantCombineWithFlags with a table-driven
sub-test covering each previously unguarded flag.
@steipete steipete merged commit 9e407bd into steipete:main Apr 20, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Owner

Landed on main.

  • Local gate: make ci
  • CI: run 24666775462 green
  • Merge commit: 9e407bd
  • Final main after changelog/lint cleanup: 4247608

Thanks @klodr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants