[SERVER-30376] Remove extra hyphens during parsing error Created: 27/Jul/17  Updated: 30/Oct/23  Resolved: 08/Jan/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Bug Priority: Trivial - P5
Reporter: Gregory Wlodarek Assignee: Kelsey Schubert
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

There are two extra hyphens being appended when there shouldn't be

$ ./mongod --storageEngine mmapv1 --storageEngine emphemeralForTest --storageEngine wiredTiger
Error parsing command line:  Multiple occurrences of option "----storageEngine"
try './mongod --help' for more information



 Comments   
Comment by Chibuikem Amaechi [ 09/Jan/18 ]

Great. Looking forward to contributing more!

Comment by Kelsey Schubert [ 08/Jan/18 ]

Thanks for your contribution, cramaechi. It's been merged into the master branch.

Comment by Githook User [ 08/Jan/18 ]

Author:

{'name': 'Chibuikem Amaechi', 'username': 'cramaechi', 'email': 'cramaechi@me.com'}

Message: SERVER-30376 Remove extra hyphens during parsing error

Closes #1199

Signed-off-by: Kelsey Schubert <kelsey@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/33cd40bc0b6779c2d97b1562dd24bf53d9c393aa

Comment by Chibuikem Amaechi [ 02/Jan/18 ]

Hi Andrew,

As per your instructions, everything has been taken care of and a pull request has now been opened.

Best Regards,
Chibuikem Amaechi

Comment by Andrew Morrow (Inactive) [ 02/Jan/18 ]

cramaechi - That seems like the plausible fix. Please be sure to include the ticket number in the commit description (see the git history for examples), and to sign the MongoDB Contributors Agreement if you have not already done so.

Comment by Chibuikem Amaechi [ 31/Dec/17 ]

The following line of code causing the issue:

sb << "Error parsing command line:  Multiple occurrences of option \"--"<< e.get_option_name() << "\"";

should be changed to:

sb << "Error parsing command line:  Multiple occurrences of option \""<< e.get_option_name() << "\"";

If everyone is in agreement, I will open a pull request.

Please share your thoughts.

Best Regards,
Chibuikem Amaechi

Generated at Thu Feb 08 04:23:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.