CLI
The OL Next CLI converts programs from the terminal. Run ol-next --help for the full list of
options.
| Option | Description | Default |
|---|---|---|
--source-kit | Language kit: cobol-cics, cobol-ims, rpgle-dspf, rpgle-rpc | cobol-cics |
--source | Path to the main program source file | required |
--screens | Path to screen map files (.bms, .mfs, .dspf) | - |
--copybooks | Comma-separated copybook or include directories | - |
--psb | IMS PSB source files for DL/I programs | - |
--dbd | IMS DBD source files for DL/I programs | - |
--out | Output directory for the generated code | required |
--phase | FAITHFUL, REFACTOR, AGGRESSIVE | REFACTOR |
--oo-style | STATE_PATTERN, PARAGRAPH_METHODS, WORKFLOW_GRAPH | STATE_PATTERN |
--naming | PRESERVE, CAMEL_CASE | CAMEL_CASE |
--dynamic | Drop @CompileStatic for plain Groovy | off |
--trace | Record the path a generated program takes: OFF, PARAGRAPH, STATEMENT | OFF |
--trace is not for production builds. It changes the shipped artifacts, not just the comparison
oracle: PARAGRAPH adds trace calls, and STATEMENT additionally synthesizes an else block for every
IF that has none. It is reliable for COBOL only: in RPGLE a SELECT folds into a nested IF chain
whose arms all carry the SELECT header's line, so the markers do not say which arm ran. Convert with
OFF for anything you intend to ship.
Convert programs from the terminal, without the web console.