code: def add_common_arguments(parser: ArgumentParser, project: bool=False):
      
      parser.add_argument("--url", type=str, help="Location of GitLab")
      parser.add_argument("--token", type=str, help="GitLab access token")
      parser.add_argument("--debug", action="store_true", default=False, help="Turns on debugging")
      if project:
          parser.add_argument("project", type=str, help="The GitLab project to set the build variables for")
docs: Adds common arguments to the given argument parser.
      :param parser: argument parser
      :param url: whether the URL named argument should be added
      :param token: whether the access token named argument should be added
      :param project: whether the project positional argument should be added