improved passing of --options to the function, introducing a _getCMDOptions() method