dblock/mongoid-shell — pull request #2 by macreery (2013-04-01 15:46:30+00:00)
Title: Add --noIndexRestore to mongorestore options

This raises an interesting issue, so please feel free to reject; `--noIndexRestore` is only supported in `mongorestore` version 2.2.0 and higher. Adding `--noIndexRestore` to the arguments of an older version of `mongorestore` will result in an error.

Perhaps `mongoid-shell` could add even more value by providing tool version portability for arguments like this? So if `:noIndexRestore` was included among the options to `Mongoid::Shell::Commands::Mongorestore.new`, the gem could make a decision about whether to actually include it in the command string, based on the version of the underlying tool?