First, have a look to see if the material from the comments has already been added to the post by an edit. If it has, you can flag the comments as unnecessaryno longer needed.
Small single line pieces of code can be edited into the post by you. If you need to suggest an edit, you can put in the edit summary something like "added information given by OP in the comments" to make it more obvious to reviewers that the edit is justified.
If the comments appear to contain multiline code or, more likely, command output, I approve of flagging them for Something else... because mods have an editor for comments which makes it possible to retrieve the original line breaks. At times it can be very difficult to work out where the line breaks were, and in any case it is relatively laborious to insert them, while for mods it's just a matter of click, copy, click, paste.
Of course, other mods may dislike the prospect of editing text from comments into a post and decline your flag. If you are worried about your flags getting declined, please feel free to ping me in chat and ask me to edit multiline code from comments into posts.