Skip to content

Remove --exclude-fields from search forward and search category - #79

Merged
zmofei merged 2 commits into
mainfrom
fix/search-exclude-fields-description
Oct 5, 2026
Merged

zmofei merged 2 commits into
mainfrom
fix/search-exclude-fields-description

Conversation

@zmofei

@zmofei zmofei commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

--exclude-fields on search forward and search category advertised photos and reviews as fields you can omit, but those fields are only returned for accounts with a specific data provider arrangement. For everyone else they never appear, so the flag did nothing.

This removes the parameter from the search spec and from docs/commands.md. Removing a flag is breaking, so there is a Breaking changelog entry: a script that passes --exclude-fields now fails with a usage error (exit 2) and should drop the flag.

Fixes #77

Not checked: I did not test against an account that has that arrangement.

photos and reviews are only returned for accounts with a specific data
provider arrangement, so for everyone else the flag has no effect. Say
so in the spec and in docs/commands.md rather than implying the fields
are always there to exclude.
@zmofei
zmofei requested a review from a team as a code owner October 5, 2026 12:52
The photos and reviews fields it omitted are only returned for accounts
with a specific data provider arrangement, so for everyone else the flag
never had an effect. Drop it rather than document a parameter that does
nothing for most users.
@zmofei zmofei changed the title Clarify that search --exclude-fields only applies to some accounts Remove --exclude-fields from search forward and search category Oct 5, 2026

@mattpodwysocki mattpodwysocki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built it and confirmed directly: --exclude-fields is gone from --help, and using it now fails with unexpected argument at exit code 2, matching the changelog. Full suite, fmt, clippy -D warnings, and docs_contract all clean. Small, surgical fix for a real no-op flag.

@zmofei
zmofei merged commit 9b78f4f into main Oct 5, 2026
8 checks passed
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.

--exclude-fields advertises photos/reviews, but those fields are never returned

2 participants