-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.8.0-rc1
-
Component/s: All Tools
-
None
The tools should error out if a users specifies more than one of the same option. For example:
mongo-tools$ mongofiles -h this-host-does-not-exist -h localhost put vendor.sh
2014-11-24T16:53:17.159-0500 connected to: localhost
added file: vendor.sh
With the current behavior, the tools only use the last option value passed in.
This is a regression from 2.6
mongo-tools$ mongofiles -h this-host-does-not-exist -h localhost put vendor.sh Error parsing command line: Multiple occurrences of option "--host" try 'mongofiles --help' for more information