You just need to pass -version to convert and it will show you the quantum depth behind the version number:
Version: ImageMagick 6.8.8-6 Q16 x86 2014-01-29 http://www.imagemagick.org
Question
Is there a flag I can pass at the command line to view the quantum depth that image magick was compiled with.
Solution
You just need to pass -version to convert and it will show you the quantum depth behind the version number:
Version: ImageMagick 6.8.8-6 Q16 x86 2014-01-29 http://www.imagemagick.org
OTHER TIPS
Just for reference as Dirk's answer is already correct and accepted, there are other ways of getting at the quantum depth and quantum range:
convert xc: -format "%q" info:
16
Q=$(convert xc: -format "%q" info:)
convert xc: -format "%[fx:quantumrange]" info:
65535
qrange=$(convert xc: -format "%[fx:quantumrange]" info:)
read Q qrange < <(convert xc: -format "%q %[fx:quantumrange]" info:)