Currently the spfx doctorcommand's default output type is json for consistency with other commands.
It will however result in an output in the terminal as shown below.

Update the command so the default value and the only value of -o, --output [output] is text instead as for this command, it is the only format supported.
If other values are requested by the user, throw an error.
Update the supporting documentation as well in this page
Currently the spfx doctorcommand's default output type is

jsonfor consistency with other commands.It will however result in an output in the terminal as shown below.
Update the command so the default value and the only value of -o, --output [output] is
textinstead as for this command, it is the only format supported.If other values are requested by the user, throw an error.
Update the supporting documentation as well in this page