Command-line examples

The following examples demonstrate command-line usage with Rational® Rhapsody®.

rhapsody -cmd=setlog d:\log.txt -cmd=open d:\rhapsody\samples\Dishwasher\Dishwasher.rpy -cmp EXE –cfg gui –cmd=generate -cmd=save –cmd=make

This sample command line performs the following actions:

  1. Starts IBM® Rational Rhapsody.
  2. Opens the Dishwasher sample.
  3. Directs the output to the file d:\log.txt.
  4. Generates code for an executable component using the gui configuration.
  5. Saves the project.
  6. Builds the component.

The following example demonstrates the use of RhapsodyCL.

RhapsodyCL.exe -lang=cpp -cmd=open d:\rhapsody\samples\Dishwasher\Dishwasher.rpy -cmd=generate


Feedback