[SERVER-2392] db.commandHelp should show an error if the command doesn't exists Created: 22/Jan/11  Updated: 12/Jul/16  Resolved: 22/Jan/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.6.5
Fix Version/s: 1.7.5

Type: Bug Priority: Major - P3
Reporter: pablo platt Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 10.10


Operating System: ALL
Participants:

 Description   

When looking for help on a non existing command the shell doesn't through an error:
db.commandHelp("something");
I would expect an error:
something is not a valid command.

It could be cool if the shell will recursively drop letters and try to find something close and print: "did you mean blablabla?"
but that just a crazy feature.



 Comments   
Comment by auto [ 22/Jan/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: commandHelp should complain if command doesn't exist SERVER-2392
https://github.com/mongodb/mongo/commit/40b3524b75c498759d91ce0b4c3ae8046db37911

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