Fix option parsing when no options given
Add transform function using cmdline options, remove old function