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

Improve error message when detecting duplicate command line arguments

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.3
    • Affects Version/s: 2.5.3
    • Component/s: Usability
    • Labels:

      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.

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

              Created:
              Updated:
              Resolved: