Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: get valid --format values via autodiscover #3389

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

mtmail
Copy link
Collaborator

@mtmail mtmail commented Apr 9, 2024

When adding a new format to nominatim/api/v1/format.py one also needed to add the format into the CLI. Now the format gets found automatically:

Before

nominatim search -h
nominatim reverse -h
nominatim lookup -h
  --format {xml,json,jsonv2,geojson,geocodejson,debug,myformat}

Now

  --format {xml,geojson,geocodejson,json,jsonv2,myformat,debug}

@lonvia lonvia merged commit 1a0f851 into osm-search:master Apr 9, 2024
11 checks passed
@lonvia
Copy link
Member

lonvia commented Apr 9, 2024

Nice!

@mtmail mtmail deleted the cli-autodiscover-valid-formats branch April 23, 2024 14:07
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