code: def get_context_from_cmdln(args, desc="Run scriptworker"):
      
      context = Context()
      parser = argparse.ArgumentParser(description=desc)
      parser.add_argument(
          "config_path", type=str, nargs="?", default="scriptworker.yaml",
          help="the path to the config file"
      )
      parsed_args = parser.parse_args(args)
      context.config, credentials = create_config(config_path=parsed_args.config_path)
      update_logging_config(context)
      return context, credentials
docs: Create a Context object from args.
  
      Args:
          args (list): the commandline args.  Generally sys.argv
  
      Returns:
          tuple: ``scriptworker.context.Context`` with populated config, and
              credentials frozendict