Fail with error if both --host and --dbpath options are used in server tools

XMLWordPrintableJSON

    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      For example, if I run the following command on HOST1, it will restore the dump to the DBPATH on localhost (HOST1), rather than HOST2. It would be nice if it would print error/warning if both --host and --dbpath options are used in mongorestore since it won't be able to restore the dump to the DBPATH on HOST2.

      mongorestore  --host HOST2 --dbpath DBPATH DUMP
      

            Assignee:
            Shaun Verch (Inactive)
            Reporter:
            Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: