How to access full -R geographic limits (w/e/s/n) when specifying DCW code

I frequently specify the region of interest using -Rcode where code belongs to the Digital Chart of the World (DCW) database. I am building a plotting script which takes a valid DCW code as input and plots that region. I would like the non-GMT parts of the script to know the actual west/east/south/north associated with that given input region. Is there a way to check the limits of a given DCW code? After reading the documentation I came up with something like this:

gmt coast -M -EIT | gmt info -C

I would think there may be a better way. I am using GMT 6.4.0 (and can’t update to latest version due to lack of admin privileges at work). Thank you!

edit: I chose the code IT (Italy) as an example. I’d like the program to be able to handle any arbitrary code.

gmt pscoast -EIT

-R6.614898/18.513453/35.492207/47.095207

Thank you, works perfectly!

I now see (after a more careful read through) that the pscoast -E documentation mentions “If neither [-J] nor [-M] are set then we just print the -R wesn string.”