Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osm2pgsql -h -v doesn't work #2357

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

osm2pgsql -h -v doesn't work #2357

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: milo[at]opengeo.nl
[Submitted to the original trac issue database at 3.14pm, Tuesday, 6th October 2009]

I discovered in source that when the -h or --help argument is detected, osm2pgsql executes

long_usage(argv[0]);
exit(EXIT_FAILURE);

within the switch. This means that when the "verbose" argument is written on the commandline AFTER the -h or --help, it is ignored.

I have added a patch to solve this. The patch adds an integer long_usage_bool that is checked outside the switch, fires the long_usage() and uses the verbose variable if it is set.

@openstreetmap-trac
Copy link
Author

Author: jonb
[Added to the original trac issue at 8.46pm, Tuesday, 6th October 2009]

(In [18001]) Apply fix from Milo to display projection information when executed with: -h -v. Fixes #2357

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant