rueckstiess / mtools

A collection of scripts to set up MongoDB test environments and parse and visualize MongoDB log files.
Apache License 2.0
1.88k stars 397 forks source link

`mlaunch init --help` should not require `mongod` #894

Closed stennie closed 1 year ago

stennie commented 1 year ago

mlaunch launches mongod --help to discover supported options, as some (like --tls*) are version-dependent.

The error message could be more informative for this use case or perhaps usage of mongod --help could be avoided:

mongod wasn't found in current $PATH, please specify with --binarypath

However, mlaunch should at least warn if no mongod is found in the path as that will be a fatal error when trying to launch a new cluster.