Retrieving the lines from a command?

Would it be possible for the Command object to give us a lines property or GetLines() function? The linecount is already available and for debugging it would be very helpful to print all the lines to the log. Currently I tend to keep the lines I've added in a "shadow" array so that I can do a "dry run" and check the log before actually running the command. That works, obviously, but isn't very elegant...

(Or is this already possible but I didn't find it?)

Thanks a lot!

Already possible via enumerators:

function OnClick(clickData)
{
	DOpus.ClearOutput();
	var cmd = clickData.func.command;
	cmd.AddLine("Help ABOUT");
	cmd.AddLine("Help LICENCEMANAGER");
	for (var e = new Enumerator(cmd); !e.atEnd(); e.moveNext())
	{
		DOpus.Output(e.item());
	}
}

Outputs:

Help ABOUT
Help LICENCEMANAGER
1 Like