LaTeX does not behave as I expected with the following files.
First file:
\documentclass[doublespacing]{article}
\usepackage{lipsum} % for dummy text only
\begin{document}
\lipsum
\end{document}
Second file:
\documentclass[doublespacing]{article}
\usepackage{setspace}
\usepackage{lipsum} % for dummy text only
\begin{document}
\lipsum
\end{document}
For the first file, LaTeX gives this warning as expected:
LaTeX Warning: Unused global option(s):
[doublespacing].
However, the second file compiles without any warnings and uses double-spacing to typeset the text.
Why does the second file work? It seems like the option given to the article documentclass should be parsed and give a warning before the \usepackage{setspace} is encountered.
And a little bit of context: I'm trying to extend a document class to include a doublespacing (by using \DeclareOption{doublespacing}, etc.), but I can't configure the behavior properly because the setspace package picks it up as if I had done \usepackage{doublespacing}. Is there a way to keep setspace from seeing the doublespacing documentclass option?

\RequirePackage[singlespacing]{setspace}override the value given in the documentclass option? – amcnabb Jan 29 at 22:28