[edit]Ignore this post, and see above. Simon's post came in while I was writing this.
I am leaving the post as (yet another) indicator of how to contact Sparx for this kind of thing.[/edit]
Hi Karina,
This one is tricky. As written it does not look like you can do this.
However...
The way the documentation reads, it definitely looks like Sparx intended to extend the function to allow other options. These would almost certainly parallel those in the GUI dialog, which is what you want. Ideally, one of these would control the Include Method Bodies setting, overriding the default behavior and any user settings.
This kind of thing - having a set of options that affect only the current method call - is a pattern that Sparx has used several times in the API.
The wording of the documentation is very interesting. It suggests that the only "currently" available option is recursing directories. It then provides the syntax as an "example," suggesting this is only one of (hopefully several) options. To make this even more interesting, the documentation of this method has not changed in some time.
Perhaps the method has evolved to accept additional options, and the documentation is lagging. Even if it has you still need to know the syntax.
My suggestion is to immediately write to Sparx support asking if this is the case. In case it is, remind them to update the documentation, and remember to post back here to let us know what they tell you about how to use the new options.
If this has not yet happened, file a feature request. Use the link near the bottom of any forum page (beneath the Support link) to get to the correct form for this. If you do file the suggestion, please post back to let us know that this function has not been updated.
HTH, David