replaced sys.argv with --options and -o