\documentclass[a4paper,ngerman,style=1]{article}
\makeatletter
\def\patteernstring{style=1}
\let\@classoptionslistorig\@classoptionslist
\let\@classoptionslisttemp\relax
\@for\tempsearch:=\@classoptionslist\do{%
\ifx\tempsearch\@empty\else
\@expandtwoargs\in@{,\tempsearch,}{,\patteernstring,}%
\ifin@\wlog{***remove option style***} \else
\wlog{***add option \tempsearch***}
% \edef\@classoptionslisttemp{\@classoptionslisttemp,\tempsearch}
\fi
\fi}%