[SERVER-10930] Improve error message when detecting duplicate command line arguments Created: 26/Sep/13  Updated: 11/Jul/16  Resolved: 07/Oct/13

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: 2.5.3
Fix Version/s: 2.5.3

Type: Improvement Priority: Minor - P4
Reporter: Sridhar Nanjundeswaran Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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.



 Comments   
Comment by auto [ 07/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-10930 Clean up output for parsing errors and show option name in duplicate option error
Branch: master
https://github.com/mongodb/mongo/commit/1875c6f9b4347a528f0ec8004e8a6ad6484ac124

Generated at Thu Feb 08 03:24:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.