[SERVER-1688] accept non-camel case args to executables Created: 26/Aug/10  Updated: 16/Jan/11  Resolved: 16/Jan/11

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

Type: Bug Priority: Minor - P4
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Problem:
1.6.0 tools seems to validate camel case argument names, for example

vero:scripts$ ../../software/mongodb-osx-x86_64-1.6.0/bin/mongod --port 27000 --rest --shardsvr --replset replset0/ --dbpath /var/lib/mongodb/replset0 --fork --logpath /var/lib/mongodb/logs/server.log
ERROR: unknown option replset

The argument that is expected is "replSet". For O/S that are case sensitive (e.g. Mac, Linux, BSD etc.) this is a pain.

Workaround:
Modify the command line args that you are passing in

Solution:
I would suggest that
a) Argument names are unique, irrespective of case
b) The argument parser allows for camel and non-camel case versions



 Comments   
Comment by Eliot Horowitz (Inactive) [ 16/Jan/11 ]

only camel case will be supported

Comment by Eliot Horowitz (Inactive) [ 26/Aug/10 ]

We're moving everything to camel case and deprecating non-camel case.
Don't want to support both

Generated at Thu Feb 08 02:57:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.