Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-718

help text descriptions - distinguish between listings - function vs function call

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 1

      I usually expect to see either commands or function calls rather than a mix of function objects and function calls, or to see them listed in a different format.

      Currently, I see function objects like "version" and function calls like "show" in the same list without any differentiation.


      In the help text, "version" is described as "Shell version". This might lead me to believe that it is a function call, but when I type "version" at the prompt, I realize that it's a function object since it outputs:

      [Function (anonymous)] { help: [Function (anonymous)] Help }

      Thus, I figured out that should convert it to a function call "version()", but did not get that information from the help text. This could confuse some users that might not realize this difference and how to convert the function object to a function call.

            Unassigned Unassigned
            chris.cho@mongodb.com Christopher Cho (Inactive)
            0 Vote for this issue
            3 Start watching this issue