Hacker News new | ask | show | jobs
by micheles 1095 days ago
This is good advice and my own software is following it:

$ oq info cfg

Looking at the following paths (the last wins)

/opt/openquake/oq-engine/openquake/engine/openquake.cfg

/opt/openquake/venv/openquake.cfg

However, I do not think there is any standard API to follow, I used "info cfg" but many alternatives were possible. So sysadmins have to explore to find out which is the introspection command to give. Not ideal, but I don't think there is a solution.

1 comments

I would look for something like this in the help output, i.e. --help or -h. And of course the manpage if you do supply one.
Another good place for that is the --version output, if your --version is one of those verbose multi-line ones (instead of a basic single-line output).