Command-line syntax

The syntax for using command-line options is the same for both rhapsody.exe and RhapsodyCL.exe. The options are in the forms of switches and commands, and the syntax is slightly different for the two groups.

In general, the switches refer to global configuration settings such as language, while the commands represent common actions in Rational® Rhapsody® such as open or generate.

Note: Any path names within these commands must not contain spaces. If spaces must be included in a path, enclose the entire path in quotation marks to direct the command to the correct location.

Switches

For switches, the general syntax is as follows:

-switchName=parameter

Example

Rhapsody.exe -lang=cpp ...

Commands

For commands, the general syntax is as follows:

-cmd=commandName parameter

Example

Rhapsody.exe -cmd=open modelName.rpy -cmd=generate

For both switches and commands, parameters are separated from the command name or previous parameter by a space. No quotation marks are used.

Switches and commands are not case-sensitive but parameters are.

Order of commands

All commands must be issued in a logical order. For example, since you must open a project before you can modify and save it, the open command must precede the save command in the command line.

There is no significance to the order of parameters.


Feedback