Skip to content

feat(cli): expose --language for public search - #89

Closed
HarshRajSinghania wants to merge 2 commits into
Aran404:mainfrom
HarshRajSinghania:feat/cli-search-language
Closed

HarshRajSinghania wants to merge 2 commits into
Aran404:mainfrom
HarshRajSinghania:feat/cli-search-language

Conversation

@HarshRajSinghania

Copy link
Copy Markdown

Summary

Add an optional --language flag to the spotapi search command so that the existing Public.search language/locale parameter is available from the CLI.

Motivation

Addresses #88. Public.search(..., language="fr-CA") already supports localized public search, but the CLI did not expose it. Users previously had to write Python for this capability.

Implementation

  • Added --language argument to the search subparser (optional string, documented with example).
  • Forwarded the value unchanged to Public.search(..., language=args.language).
  • Omitting the flag preserves previous behaviour (None is passed).
  • Added offline unit tests covering both the supplied and omitted cases.

Testing

  • Existing CLI tests continue to pass with the new default.
  • New tests verify that --language fr-CA is forwarded and that the default call omits a language value.
  • No new dependencies or API changes.

Closes #88.

Harsh Raj Singhania added 2 commits November 14, 2026 21:08
Add an optional --language flag to the search command so users can request localized results (e.g. fr-CA) without writing Python. The value is forwarded unchanged to Public.search. Omitting the flag preserves existing behaviour.

Closes Aran404#88.
Expose Public.search language parameter via CLI for localized results.
@Aran404

Aran404 commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Spam

@Aran404 Aran404 closed this Nov 14, 2026
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.

CLI: expose public search language with --language

2 participants