Refactor cmd_print_format into r_print_format

That enables nested specific fields access for reading and writing