I believe you're intending to check if --format=raw is being used. I suspect we could find a better way to do this, potentially as a FormattedItem.