Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-409

Tools accept multiple option arguments

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.8.0-rc1
    • All Tools
    • None

    Description

      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

      Attachments

        Activity

          People

            adinoyi.omuya@mongodb.com Adinoyi Omuya
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: