$ rea decompile --help
exit: 0
--- stdout
rea decompile — Read one part of an app as code. Supply at least one of the positional address or --procedure. Alternatively, use --file-offset alone. Equal positional and --procedure values are accepted; conflicts fail. With Ghidra, a space-qualified address such as ram:0x... avoids file-offset fallback; inspect-native-load-image reports the observed default space.

Usage: rea decompile <path> [address] [options]

Arguments:
  path     App or program path
  address  Procedure name or address. Supply at least one of the positional address or --procedure. Alternatively, use --file-offset alone.

Options:
  --analysis <independent_fresh|call_destination>                                             Select standalone analysis. independent_fresh requires independent_decompile. call_destination requires call_destination_decompile and an exact address.
  --detail <complete|summary>                                                                 Omit for complete Evidence when it fits the agent result budget (32768 compact JSON bytes by default, about 11k tokens) and its summary otherwise; complete always delivers everything; summary needs --evidence_output
  --snapshot <string>                                                                         Load and update a local analysis snapshot
  --target-format <dos-com|raw-binary|gamecube-dol>                                           Explicit interpretation: dos-com or raw-binary (headerless), or gamecube-dol (GameCube/Wii DOL, never auto-detected); omission preserves header-based detection
  --architecture <6502|x86|x86_64|arm|arm64|m68k>                                             Caller-supplied CPU family; required with --target-format raw-binary, must be omitted with gamecube-dol
  --entry-point <string>                                                                      Caller-supplied code entry address (0xhex), also the load address without --base-address; required with --target-format raw-binary unless --architecture-variant is given, optional with gamecube-dol (must equal the DOL header entry)
  --base-address <string>                                                                     Address of raw file offset 0 (0xhex), separate from --entry-point; only with --architecture-variant
  --architecture-variant <armv6-m|armv7-m|armv7e-m|armv8-m.base|armv8-m.main|armv8.1-m.main>  ARM M-profile variant of a raw image, decoded in Thumb state; requires --architecture arm and --base-address
  --vector-table-address <string>                                                             Address of the M-profile vector table (0xhex) when --entry-point is omitted and the table is not at --base-address
  --provider <value>                                                                          Bind deep analysis to a provider ID or use deterministic auto selection
  --evidence_output <string>                                                                  Save complete Evidence as a bundle; required for summary delivery. Never overwrites.
  --procedure <string>                                                                        Procedure name or address; use --procedure=<value> for leading dashes. Supply at least one of the positional address or --procedure. Alternatively, use --file-offset alone.
  --file-offset <string>                                                                      Ghidra source-file byte offset; mapped internally to an analysis address. Supply at least one of the positional address or --procedure. Alternatively, use --file-offset alone.

Custom Global Options:
  --timings  Write measured command timing to stderr.

Global Options:
  --columns <fields>                          Comma-separated row fields for --format csv or tsv, in output order
  --filter-output <keys>                      Filter output by key paths (e.g. foo,bar.baz,a[0,3])
  --format <toon|json|yaml|md|jsonl|csv|tsv>  Output format
  --full-output                               Show full output envelope
  --help                                      Show help
  --json                                      Shorthand for --format json
  --llms, --llms-full                         Print LLM-readable manifest
  --no-retain                                 Write no over-budget result to the retained-Evidence cache
  --schema                                    Show JSON Schema for command
  --token-count                               Print token count of output (instead of output)
  --token-limit <n>                           Limit output to n tokens
  --token-offset <n>                          Skip first n tokens of output
<end>
--- stderr
<end>
