Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10930

Improve error message when detecting duplicate command line arguments

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.5.3
    • 2.5.3
    • Usability

    Description

      When you repeat parameters on the command line mongod errors as follows

      c:\mongo\mongodb-win32-x86_64-2008plus-2.5.2\bin>..\..\mongodb-win32-x86_64-2008
      plus-2013-09-13\bin\mongod.exe --port 27017 --port 27017 --port 27017
      Error parsing command line: BadValue Error parsing command line: multiple occurrences
      use --help for help
      Error parsing command line: BadValue Error parsing command line: multiple occurrences

      Specifying which options are repeated will greatly help. Also note the message is printed twice.

      Attachments

        Activity

          People

            sverch Shaun Verch
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: