listings package, they note that "a global
draft is recognized, so you don’t need to repeat it as a package option"
I tried looking into its source to see how it accomplishes this, but I wasn't able to find the magic bit. How does one detect the global
\documentclass options from within an independent style/package?