Rhinoscriptsyntax.GetRectangle() is broken

Here is the Help for rs.GetRectangle():

So, supplying mode=0 as the first argument (or leaving it out) should enable “All modes”. However, there are no command line options offered (as the Rhino command Rectangle does), instead it behaves exactly like mode=1, only two corner points can be chosen.

In checking with VB Rhinoscript, if I run

test = Rhino.GetRectangle(0)

it does indeed give me the following command line options:

image

In looking further into the RhinoCommon code that rs.GetRectangle() calls, it appears that the RhinoCommon method Rhino.Input.RhinoGet.GetRectangle is actually what is broken.

If you run this:

import Rhino
base_point = Rhino.Geometry.Point3d.Unset
prompts = ["", "", ""]
rc, corners = Rhino.Input.RhinoGet.GetRectangle(0, base_point, prompts)

You get the same thing happening as with rs.GetRectangle(0), that is to say no command line options and it goes directly into two point mode.

Tested in V7 and WIP

@Alain - is this something you can help with?

It looks like the function is only partially implemented. Logged here.
Thanks