butterfly
Composes a symbol's callers (upward wing) and callees (downward wing) into one combined chart in a single command.
Read this when you want both directions of a symbol call graph in one picture. butterfly joins its callers (upward wing) and callees (downward wing) into one chart, as dot, mermaid, text or json, in a single command.
How to run it
Full flag list: butterfly in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--qname | <X> | ||
--depth | N | ||
--format | |||
--output | F | ||
--db | PATH |
Where to click
- RAD Studio main menu: drag-lint > Uses & Dependencies > Call Graph (Butterfly)...
- Put the caret on the routine in the editor
- Choose drag-lint > Uses & Dependencies > Call Graph (Butterfly)...
- The callers and callees of the symbol open together in the Call Graph view
Needs: index
Details
Composes a symbol's callers (upward wing) and callees (downward wing) into one combined chart in a single command. Reach for it when you want the full two-directional call graph of a symbol without running two separate queries.
Running it from the CLI
drag-lint butterfly --qname <X> [--depth N] [--format dot|mermaid|text|json] [--json] [--output F] --db PATH [--db ...]
--qname <X> is the symbol to center the chart on. --depth N bounds how
far each wing walks. --format selects dot (the default), mermaid,
text, or json; --json is the same as --format json (and makes a
"symbol not found" error come back as JSON too). --output F writes the chart to a file instead of
stdout. --db PATH may be repeated.
What it needs
An index IS required. The project's DB lives at
<project folder>\_D-RAG\<project file>.sqlite; run
drag-lint resolve-dbs --project <X.dproj> if unsure.
Example
Illustrative only:
drag-lint butterfly --qname CustomerOrder.TCustomerOrder.Total --db C:\Projects\MyApp\_D-RAG\MyApp.sqlite --format dot
This would produce one DOT chart showing both who calls Total and what
Total calls.