Command-line switches

The switches that can be used on the command line are listed here. Unless otherwise noted, switches can be used with both Rhaposody.exe and RhapsodyCL.exe.

-animport=<Number>

(cannot be used with RhapsodyCL.exe)

Instructs Rational® Rhapsody® to use an animation port other than the one defined in the rhapsody.ini file. Using this option allows you to use animation in a number of Rational Rhapsody instances simultaneously.

-architect

Runs the architect version of the product.

-dev_ed (default)

Runs the developer version of the product (this is the default value if a specific version is not specified).

-f

Runs the script provided as a parameter.

-hiddenui

(cannot be used with RhapsodyCL.exe)

Hides the Rational Rhapsody user interface. Can be used for tasks such as generating code.

Note: This switch predated RhapsodyCL. For tasks such as code generation, use RhapsodyCL rather than running the full version of the product with the ‑hiddenui switch.

-interactive

Switches to a "shell mode" using a prompt to enter commands (see RhapsodyCL for more information).

-lang=<language>

Specifies the code language.

-noanimation

(cannot be used with RhapsodyCL.exe)

Disables animation by not attempting to open the TCP/IP animation port. This is useful for running more than one instance of Rational Rhapsody without having to deal with the modal window that pops up when the animation port is unavailable.

-nodiagrams

(cannot be used with RhapsodyCL.exe)

Loads the specified Rational Rhapsody model without the diagrams it contains.

-profile=<profile name>

Starts the product with the specified profile.

-root=<pathname>

Specifies the root directory of the product installation.

-socket <Socket_Port>

RhapsodyCL listens on the socket port, and commands that arrive on that socket are executed immediately (see RhapsodyCL for more information).

-system_architect

Runs the System Architect edition of the product.

-system_designer

Run the Designer for Systems Engineers edition of the product.

-verbose

Use this switch when you want RhapsodyCL to notify you about wrong syntax or unsupported commands.


Feedback