corrected parsing of --variables option