Chooses the output format in print mode: text, json, or stream-json.
FlagsWork and taskscurrent
What the documentation does not say
stream-json is the one that makes the event flags possible, and most of them additionally require --verbose. json gives one object at the end, which is what a shell script usually wants.