Consider the following (well-behaving) latex code, where the hidelinks option works as expected:
\documentclass[american, hidelinks, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{bookmark}
\begin{document}
\tableofcontents
\chapter{Foo}
\section{SFoo}
Some reference to \autoref{chap:bar}.
\chapter{Bar}
\label{chap:bar}
\section{SBar}
\end{document}
Now if I separate the preamble into its own class, i.e.,
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{some}[2018/01/09 Some Class]
\LoadClass[american, hidelinks, 12pt]{report}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{bookmark}
And re-write the MWE from above to use this class:
\documentclass{the-class-from-above}
\begin{document}
\tableofcontents
\chapter{Foo}
\section{SFoo}
Later, in \autoref{chap:bar}.
\chapter{Bar}
\label{chap:bar}
\section{SBar}
\end{document}
I get the "unused global options" warning for both hidelinks and american (but not 12pt). Indeed, all links appear with a red box, as if hidelinks is not there.
Is there a generic guideline on how to correctly load class options that I am missing?
EDIT:
This question is highly related, but is itself unanswered.
\usepackage[hidelinks]{bookmark}fails to compile. – dow Jan 10 '18 at 15:13