-X could print all information known to DMD on stdout in the JSON format if no files are given.
Comment #1 by timothee.cour2 — 2018-02-04T23:38:08Z
behavior should be defined in:
https://github.com/dlang/dmd/pull/7838#issuecomment-362949178
-Xf=- => stdout
-Xf=file => file
-X => inferredoutputfile.json (requires some input files)
what it outputs:
if no input file => static compiler info
if input file => module info (cf same as before)
if -Xq=query also given:
what's generated depends on query
Comment #2 by robert.schadek — 2024-12-13T18:56:40Z