1.3.220 usecase run

Runs a use case script.

Syntax

usecase run [flag] script_name [entry_point] [--option | positional_argument]...

Where:

script_name

Name of the use case script to run.

flag

Specifies the location of the use case script. This can be one of:

-p

The directory associated with the current platform in the DS-5 Configuration databases.

-s

The Scripts\usecase directory in the DS-5 Configuration databases.

entry_point

Specifies a named entry point in the use case script. If there is only one entry point defined in the use case script, it is not necessary to specify the entry point on the command line. If the use case script contains more than one entry point, then you must specify which one to use, as a parameter to this command.

option

Specifies a named option defined in the use case script and its value. You can specify more than one option.

positional_argument

Specifies a positional argument to the entry point. You can specify more than one positional_argument.

Example 1-223 Examples

usecase run myscript.py                   # Runs a script named myscript.py in the current directory
usecase run -p platform_script.py entry   # Runs platform_script.py in the current platform directory in the DS-5 Configuration database, with entry point set to entry
usecase run -s db_script.py --opts.x=1    # Runs db_script.py in the Scripts\usecase directory in the DS-5 Configuration database, with the option opt.x defined as 1
usecase run second_script.py main x y z   # Runs second_script.py passing in x, y, and z as positional arguments to the entry point main

usecase run -s myscript.py --cores=4 --target="run" t.txt        
                                          # Runs myscript.py in the Scripts\usecase directory with options cores and target and a positional argument t.txt
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.