Parse the command line and dispatch the appropriate script.

  This function just performs dispatch on the command line that a user
  provided. Basically, look at the first argument, which specifies the
  function the user wants Ribocop to perform, then dispatch to the appropriate
  module.

def dispatch(args):
  """
  Parse the command line and dispatch the appropriate script.

  This function just performs dispatch on the command line that a user
  provided. Basically, look at the first argument, which specifies the
  function the user wants Ribocop to perform, then dispatch to the appropriate
  module.
  """
  prog_name = args[0]
  if prog_name not in dispatchers:
    raise NoSuchScriptError("No such pyokit script: " + prog_name + "\n")
  else:
    dispatchers[prog_name](args[1:])