Coverage for geoparser/cli/download.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-20 18:08 +0000

1import typer 

2 

3 

4def download_cli(config: str): 

5 """ 

6 [Deprecated] This command has been renamed to ``install``. 

7 

8 Use ``install`` instead:: 

9 

10 python -m geoparser install geonames 

11 

12 Args: 

13 config: Either a gazetteer name (e.g., 'geonames', 'swissnames3d') or 

14 a path to a custom YAML configuration file. 

15 """ 

16 typer.secho( 

17 f"Use 'install' instead:\n" f" python -m geoparser install {config}", 

18 fg=typer.colors.YELLOW, 

19 err=True, 

20 ) 

21 raise typer.Exit(code=1)