new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  # Documentation:
  # - http://docs.astropy.org/en/stable/io/fits/
  # - http://docs.astropy.org/en/stable/io/fits/api/files.html
  # - http://www.astropy.org/astropy-tutorials/FITS-tables.html
  # - http://www.astropy.org/astropy-tutorials/FITS-images.html
  # - http://www.astropy.org/astropy-tutorials/FITS-header.html
  
  import argparse
  from astropy.io import fits
  
  # PARSE OPTIONS ###############################################################
  
  parser = argparse.ArgumentParser(description="An astropy snippet")
  parser.add_argument("filearg", nargs=1, metavar="FILE", help="the FITS file to process")
  args = parser.parse_args()
  file_path = args.filearg[0]
  
  # READ DATA ###################################################################
  
  # Open the FITS file
  hdu_list = fits.open(file_path)
  
  # Print the content of the FITS file (HDU headers)
  hdu_list.info()
  
  # Close the FITS file
  hdu_list.close()
  
  
subject: Add a snippet.