I'm writing a package to help to write classes. A feature of my package is to build automatically the list of options for \LoadClass method call. I want to build a LoadClass method wrapper in order to make the list of options and delegate to LoadClass. The \LoadClass method have optional arguments before and after mandatory arguments:
\LoadClass[<options>]{<className>}[<date>]
. The problem is that I didn't find documentation about how to build this kind of commands. I always found how to define optional arguments just before the mandatory arguments. I wish to keep the same order used by \LoadClass. Something like \MyLoadClass{<className>}[<date>]
and implement it like \LoadClass[\buildOptions]{#1}[#2]
I will be greatful for any help.