osm-fr / osmose-backend

Part of osmose that runs the analysis, and send the results to the frontend.
GNU General Public License v3.0
92 stars 115 forks source link

osmose-run.py --list-country brings back the --help page #881

Closed wetneb closed 4 years ago

wetneb commented 4 years ago

As a user I expect that running osmose-run.py --list-country gives me the list of available countries to run Osmose on. Instead I get the same output as with --help:

Usage: osmose_run.py [options]

Options:
  -h, --help            show this help message and exit
  --verbose             Verbose mode
  --list-analyser       List all available analysers
  --list-country        List all available countries
  --country=COUNTRY     Country to analyse (can be repeated)
  --analyser=ANALYSER   Analyser to run (can be repeated)
  --plugin=PLUGIN       Plugin to run (can be repeated). For analyser 'sax'
                        only
  --change              Run analyser on change mode when available
  --change_init         Initialize database for change mode
  --resume              Run analyser on change mode by continuing from last
                        run when available
  --skip-download       Don't download extract
  --skip-init           Don't initialize database
  --skip-frontend-check
                        Don't check the status of this analyser on the
                        frontend
  --skip-analyser       Don't run the analyse part
  --skip-upload         Don't upload the analyse result
  --no-clean            Don't remove extract and database after analyses
  --result-format=RESULT_FORMAT
                        Analyser result format. Default 'osmose' XML. For
                        debug purpose can be 'csv' or 'geojson'
  --cron                Record output in a specific log
  --send-alert-email=ALERT_EMAILS
                        Send an email alert in case of error
  --minimum-free-space=MINIMUM_FREE_SPACE
                        Minimum free space required on filesystem before
                        running (in GB)
  --version             Output version information and exit
frodrigo commented 4 years ago

Thank for report fixed.