code: def _extract_options(orig_script):
          
          first = (orig_script + '\n').splitlines()[0]
          match = _first_line_re().match(first)
          options = match.group(1) or '' if match else ''
          return options.strip()
docs: Extract any options from the first line of the script.