Replace deprecated switches

Warning: -convert-to is deprecated.  Use --convert-to instead.
Warning: -outdir is deprecated.  Use --outdir instead.
Merge pull request #12261 from oparoz/patch-1

Replace deprecated switches