-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
osrm-datastore command line improvements #951
Comments
Behavior now is much nicer, i.e.: $ ./osrm-datastore
[info] osrm-datastore <base.osrm> [<options>]:
Options:
-v [ --version ] Show version
-h [ --help ] Show this help message
-c [ --config ] arg (="server.ini") Path to a configuration file
Configuration:
--hsgrdata arg .hsgr file
--nodesdata arg .nodes file
--edgesdata arg .edges file
--geometry arg .geometry file
--ramindex arg .ramIndex file
--fileindex arg File index file
--namesdata arg .names file
--timestamp arg .timestamp file |
good improvements, but you missed one. I'll clarify. This command:
Leads to this error:
It should instead say something like:
Otherwise it is baffling why the |
@springmeyer This is now (hopefully) fixed with 823e8d2. |
@springmeyer are we good here? |
I assume so, closing. |
In addition to #890 here are a few improvements that ideally could be made to the
osrm-datastore
tool to avoid pitfalls/confusion for users.First, it seems like there are two modes: you can either pass one argument to the
base.osrm
file or you can pass multiple options to point to each bit of pre-processed data, but using the flags of--hsgrdata
and--nodesdata
, etc. If my understanding here is correct then the output ofosrm-datastore -h
is confusing because at first I thought you could combine them by doingosrm-datastore base.osrm --hsgrdata base.osrm.hsgrdata .... etc
. But this leads to very odd errors that are hard to interpret:Next, it appears that the format of
--option=value
is not supported and only--option value
is supported. Ideally an error could be thrown up front if--option=value
syntax is used saying it is invalid, otherwise understanding the user error is difficult. For example passing--sharedmemory=on
leads to:The text was updated successfully, but these errors were encountered: