code: def scaninputline(inputline):
      files, skipfuncs, onlyfuncs, debug = [], [], [], []
      f, f2, f3, f5, f6, f7, f8, f9 = 1, 0, 0, 0, 0, 0, 0, 0
      verbose = 1
      dolc = -1
      dolatexdoc = 0
      dorestdoc = 0
      wrapfuncs = 1
      buildpath = "."
      include_paths = []
      signsfile, modulename = None, None
      options = {
          "buildpath": buildpath,
          "coutput": None,
          "f2py_wrapper_output": None,
      }
      for l in inputline:
          if l == "":
              pass
          elif l == "only:":
              f = 0
          elif l == "skip:":
              f = -1
          elif l == ":":
              f = 1
          elif l[:8] == "--debug-":
              debug.append(l[8:])
          elif l == "--lower":
              dolc = 1
          elif l == "--build-dir":
              f6 = 1
          elif l == "--no-lower":
              dolc = 0
          elif l == "--quiet":
              verbose = 0
          elif l == "--verbose":
              verbose += 1
          elif l == "--latex-doc":
              dolatexdoc = 1
          elif l == "--no-latex-doc":
              dolatexdoc = 0
          elif l == "--rest-doc":
              dorestdoc = 1
          elif l == "--no-rest-doc":
              dorestdoc = 0
          elif l == "--wrap-functions":
              wrapfuncs = 1
          elif l == "--no-wrap-functions":
              wrapfuncs = 0
          elif l == "--short-latex":
              options["shortlatex"] = 1
          elif l == "--coutput":
              f8 = 1
          elif l == "--f2py-wrapper-output":
              f9 = 1
          elif l == "--overwrite-signature":
              options["h-overwrite"] = 1
          elif l == "-h":
              f2 = 1
          elif l == "-m":
              f3 = 1
          elif l[:2] == "-v":
              print(f2py_version)
              sys.exit()
          elif l == "--show-compilers":
              f5 = 1
          elif l[:8] == "-include":
              cfuncs.outneeds["userincludes"].append(l[9:-1])
              cfuncs.userincludes[l[9:-1]] = "#include " + l[8:]
          elif l[:15] in "--include_paths":
              outmess(
                  "f2py option --include_paths is deprecated, use --include-paths instead.\n"
              )
              f7 = 1
          elif l[:15] in "--include-paths":
              f7 = 1
          elif l[0] == "-":
              errmess("Unknown option %s\n" % repr(l))
              sys.exit()
          elif f2:
              f2 = 0
              signsfile = l
          elif f3:
              f3 = 0
              modulename = l
          elif f6:
              f6 = 0
              buildpath = l
          elif f7:
              f7 = 0
              include_paths.extend(l.split(os.pathsep))
          elif f8:
              f8 = 0
              options["coutput"] = l
          elif f9:
              f9 = 0
              options["f2py_wrapper_output"] = l
          elif f == 1:
              try:
                  open(l).close()
                  files.append(l)
              except IOError as detail:
                  errmess(
                      'IOError: %s. Skipping file "%s".\n'
                      % (str(detail), l)
                  )
          elif f == -1:
              skipfuncs.append(l)
          elif f == 0:
              onlyfuncs.append(l)
      if not f5 and not files and not modulename:
          print(__usage__)
          sys.exit()
      if not os.path.isdir(buildpath):
          if not verbose:
              outmess("Creating build directory %s" % (buildpath))
          os.mkdir(buildpath)
      if signsfile:
          signsfile = os.path.join(buildpath, signsfile)
      if (
          signsfile
          and os.path.isfile(signsfile)
          and "h-overwrite" not in options
      ):
          errmess(
              'Signature file "%s" exists!!! Use --overwrite-signature to overwrite.\n'
              % (signsfile)
          )
          sys.exit()
  
      options["debug"] = debug
      options["verbose"] = verbose
      if dolc == -1 and not signsfile:
          options["do-lower"] = 0
      else:
          options["do-lower"] = dolc
      if modulename:
          options["module"] = modulename
      if signsfile:
          options["signsfile"] = signsfile
      if onlyfuncs:
          options["onlyfuncs"] = onlyfuncs
      if skipfuncs:
          options["skipfuncs"] = skipfuncs
      options["dolatexdoc"] = dolatexdoc
      options["dorestdoc"] = dorestdoc
      options["wrapfuncs"] = wrapfuncs
      options["buildpath"] = buildpath
      options["include_paths"] = include_paths
      return files, options
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import os
  import pprint
  import re
  from .None import crackfortran
  from .None import rules
  from .None import cb_rules
  from .None import auxfuncs
  from .None import cfuncs
  from .None import f90mod_rules
  from .None import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: scaninputline(inputline) and returns: files,  options