Mention all output types.
Remove "hex" from output.
General formatting of the output: more whitespaces
Due to backports being done out of sequential order, commit fa3caa1666a9baa856e92398a890aaddbdd98f7c (use IsValidNumArgs over hardcoded check) is not relevant for us. See D6580.
This is a backport of Core PR15616