I want to declare an option in my package that, if provided, will require another package. However, just doing
\DeclareOption{requiresomething}{
\RequirePackage{somepackage}
}
does not work, as you can't mix package requiring with the Option Section. Is there any simple solution to this? Am I doing something wrong?