code: def default_database(ctx: click.Context, _param: Parameter, value: Optional[str]):
      
      if value:
          return value
  
      if ctx.params["repository"]:
          return os.path.join(ctx.params["repository"], DB.DEFAULT_DB_FILE)
  
      raise click.BadParameter("Could not guess a database location")
docs: Try to guess a reasonable database name by looking at the repository path