Skip to main content
Version: 5.1.1.0

PSC-Tool

The psc-tool is a command line tool that can be used to generate PSC files from a given scenario directory.

The tool supports single scenario mode and multi scenario mode:

  • Single scenario mode: only one scenario is exported to a PSC file.
  • Multi scenario mode: a parent directory containing multiple scenario directories is given, and all scenarios are exported to PSC files in the target directory.

Usage​

PscTool [single|multi] <input-directory> <output-directory>
  • single → exports a scenario in the given input directory to the output directory.
  • multi → exports all scenarios from the parent input directory to PSC files in the output directory.

To ignore upcoming errors, add the option --skipErrors at the end of the command line. If present, PSC files will still be generated for invalid scenarios.

Validation​

The tool can also validate scenarios against configuration failures.

PscTool [validate|validatemulti] <input-directory>
  • validate → validates a single scenario in the given input directory.
  • validatemulti → validates all scenarios from the parent input directory.

If validation fails, errors are printed to the console.

How to Use​

To use the tool, follow these steps:

  1. Open your Command Prompt or Terminal.
  2. Navigate to the directory where the psc-tool is located.
  3. Enter the command PscTool followed by the required parameters and options.

Examples​

PscTool validate path/to/input-directory/scenario
PscTool validatemulti path/to/input-directory
PscTool single path/to/input-directory/scenario path/to/output-directory --skipErrors
PscTool multi path/to/input-directory path/to/output-directory