Tools accept multiple option arguments

XMLWordPrintableJSON

    • 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
      

            Assignee:
            Adinoyi Omuya (Inactive)
            Reporter:
            Adinoyi Omuya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: